set more 1

/*
File:	cepr_basic_ind.do
Date:	Nov 21, 2006
	Feb 10, 2009
	Jan 4, 2010
	Feb 22, 2011
	Mar 21, 2011
	Jan 4, 2012
	Oct 16, 2012
	Jan 4, 2013
	Dec 20, 2013
	Mar 12, 2015, CEPR ORG Version 2.0
	Apr  1, 2015, CEPR ORG Version 2.0.1
	March 1, 2016, CEPR ORG Version 2.1
	Oct 12, 2016, CEPR ORG Version 2.1.1
	Feb 9, 2017, CEPR ORG Version 2.2
	Apr 21, 2017, CEPR ORG Version 2.2.1
	Apr 10, 2018, CEPR ORG Version 2.3
	Mar 22, 2019, CEPR ORG Version 2.4
	Jul 24, 2019, CEPR ORG Version 2.4.1
	Feb 05, 2020, CEPR ORG Version 2.5
	
Desc:	Creates consistent industry variables for CEPR consistent
	extract	of Basic CPS ORG; industry labels from NBER:
	labels79_82.do through labels99.do
*/

/* note: any pre-1994 data processing is not yet correct;
         use only to process data from 1994 forward
*/

/* Determine data year */
local year=year in 1

/* Consistent two-digit industry coding from NBER */

gen byte ind_nber=.

if `year'==1991 {
replace ind_nber=addtind
replace ind_nber=52 if 47<=addtind & addtind<=50 /* public administration */
}
if 1994<=`year' & `year'<=2002 {
replace ind_nber=prdtind1 if 1<=prdtind1 & prdtind1<=32
replace ind_nber=33 if prdtind1==33 | prdtind1==34 /* retail trade */
replace ind_nber=prdtind1-1 if 35<=prdtind1 & prdtind1<=47 
replace ind_nber=51 if prdtind1==52 /* armed forces */
replace ind_nber=52 if 48<=prdtind1 & prdtind1<=51 /* public administration */
}
if 2003<=`year' & `year'<=2020 {
/* not available */
}

lab var ind_nber "2-digit industry"
#delimit ;
label define ind_nber
1  "Agriculture Service"						
2  "Other Agriculture"             					
3  "Mining"                        					
4  "Construction"                  					
5  "Lumber and wood products , except furniture"			
6  "Furniture and fixtures"        					
7  "Stone clay ,glass and concrete product"				
8  "Primary metals"                					
9  "Fabricated metal"              					
10 "Not specified metal industries"					
11 "Machinery, except electrical"  					
12 "Electrical Machinery, equipment ,and supplies"			
13 "Motor vehicles and equipment"  					
14 "Aircrafts and parts"           					
15 "Other transportation equipment"					
16 "Professional and photographic equipment, watches"				
17 "Toys, amusements ,and sporting goods"				
18 "Miscellaneous and not specified manufacturing industries"		
19 "Food and kindred products"     					
20 "Tobacco manufactures"          					
21 "Textile mill products"         					
22 "Apparel and other finished textile prod."				
23 "Paper and allied products"						
24 "Printing ,publishing and allied industries"				
25 "Chemicals and allied products" 					
26 "Petroleum and coal products"   					
27 "Rubber and miscellaneous plastics products"				
28 "Leather and leather products"  					
29 "Transportation"                					
30 "Communications"                					
31 "Utilities and Sanitary Services"					
32 "Wholesale Trade"               					
33 "Retail Trade"                  					
34 "Banking and Other Finance"     					
35 "Insurance and Real Estate"     					
36 "Private Household Services"    					
37 "Business Services"             					
38 "Repair Services"               					
39 "Personal Services , Except Private Household"			
40 "Entertainment and Recreation Services"				
41 "Hospitals"                     					
42 "Health Services , Except Hospitals"					
43 "Educational Services"          					
44 "Social Services"               					
45 "Other professional Services"   					
46 "Forestry and Fisheries"        					
51 "Armed Forces last job, currently unemployed"			
52 "Public Administration"						
;									
#delimit cr								
lab val ind_nber ind_nber
notes ind_nber: Not available 2003-on
notes ind_nber: CPS: derived by NBER from a-ind; a-dtind

/* BLS two-digit codes 2003- */

gen byte ind_2d=.

if `year'<=2002 {
* not available
}

if 2003<=`year' & `year'<=2020 {
replace ind_2d=prdtind1
replace ind_2d=. if prdtind1<=0
}

lab var ind_2d "2-digit industry"
#delimit ;
label define ind_2d
1 "Agriculture 0170-0180,0290"
2 "Forestry, logging, fishing, hunting, trapping 0190-0280"
3 "Mining 0370-0490"
4 "Construction 0770"
5 "Nonmetallic mineral products 2470-2590"
6 "Primary metals and fabricated metal products 2670-2990"
7 "Machinery manufacturing 3070-3290"
8 "Computer and electronic products 3360-3390"
9 "Electrical equipment, appliance manufacturing 3470,3490"
10 "Transportation equipment manufacturing 3570-3690"
11 "Wood products 3770-3870"
12 "Furniture and fixtures manufacturing 3890"
13 "Miscellaneous and not specified manufacturing 3960-3990"
14 "Food manufacturing 1070-1290"
15 "Beverage and tobacco products 1370,1390"
16 "Textile, apparel, and leather manufacturing 1470-1790"
17 "Paper and printing 1870-1990"
18 "Petroleum and coal products 2070,2090"
19 "Chemical manufacturing 2170-2290"
20 "Plastics and rubber products 2370-2390"
21 "Wholesale trade 4070-4590"
22 "Retail trade 4670-5790"
23 "Transportation and warehousing 6070-6390"
24 "Utilities 0570-0690"
25 "Publishing industries (except internet) 6470-6490"
26 "Motion picture and sound recording industries 6570,6590"
27 "Broadcasting (except internet) 6670"
28 "Internet publishing and broadcasting 6675"
29 "Telecommunications 6680,6690"
30 "Internet service providers and data processing services 6692,6695"
31 "Other information services 6770,6780"
32 "Finance 6870-6970"
33 "Insurance 6990"
34 "Real estate 7070"
35 "Rental and leasing services 7080-7190"
36 "Professional and technical services 7270-7490"
37 "Management of companies and enterprises 7570"
38 "Administrative and support services 7580-7780"
39 "Waste management and remediation services 7790"
40 "Educational services 7860-7890"
41 "Hospitals 8190"
42 "Health care services, except hospitals 7970-8180,8270,8290"
43 "Social assistance 8370-8470"
44 "Arts, entertainment, and recreation 8560-8590"
45 "Accommodation 8660-8670"
46 "Food services and drinking places 8680,8690"
47 "Repair and maintenance 8770-8890"
48 "Personal and laundry services 8970-9090"
49 "Membership associations and organizations 9160-9190"
50 "Private households 9290"
51 "Public administration 9370-9590"
52 "Armed forces 9890"
;
#delimit cr
lab val ind_2d ind_2d


notes ind_2d: Not available 1979-2002
notes ind_2d: Label includes 4-digit 2002 NAICS equivalents
notes ind_2d: CPS: prdtind1

/* Three-digit industry */

capture gen ind70=.
capture gen ind80=.
capture gen ind03=.
capture gen ind09=.
capture gen ind12=.
capture gen ind14=.

	/* 1979-1982 */

#delimit ;
lab def ind70
17  "Agricultural production (01)"  
18  "Agricultural services, except horticultural (07 except 0713 and 073)"
19  "Horticultural services (073)"  
27  "Forestry (08)"                 
28  "Fisheries (09)"                
29  "Agriculture, forestry, and fisheries--allocated"
47  "Metal mining (10)"             
48  "Coal mining (11, 12)"          
49  "Crude petroleum and natural gas extractions (13)"
57  "Nonmetallic mining and quarrying, except fuel (14)"
58  "Mining--allocated"             
67  "General building contractors (15)"
68  "General contractors, except building (16)"
69  "Special trade contractors (17)"
77  "Not specified construction"    
78  "Construction--allocated"       
107 "Logging (241)"                 
108 "Sawmills, planing mills, and mill work (242, 243)"
109 "Miscellaneous wood products (244,249)"
118 "Furniture and fixtures (25)"   
119 "Glass and glass products (321-323)"
127 "Cement, concrete, gypsum, and plaster products (324, 327)"
128 "Structural clay products (325)"
137 "Pottery and related products (326)"
138 "Miscellaneous nonmetallic mineral and stone products (328, 329)"
139 "Blast furnaces, steel works, rolling and finishing mills (3312,3313)"
147 "Other primary iron and steel industries (3315-3317, 332, 3391, part 3399)"
148 "Primary aluminum industries (3334, part 334, 3352, 3361, part 3392,part3399"
149 "Oth prim nonfer ind (3331-3,3339,pt334,3351,3356-7,3362,3369,pt3392,pt3399)"
157 "Cutlery, hand tools, and other hardware (342)"
158 "Fabricated structural metal products (344)"
159 "Screw machine products (345)"  
167 "Metal stamping (346)"          
168 "Miscellaneous fabricated metal products (341, 343, 347, 348, 349)"
169 "Not specified metal industries"
177 "Engines and turbines (351)"    
178 "Farm machinery and equipment (352)"
179 "Construction and material handling machines (353)"
187 "Metalworking machinery (354)"  
188 "Office and accounting machines (357 except 3573)"
189 "Electronic computing equipment (3573)"
197 "Machinery, except electrical, n.e.c. (355, 356, 358, 359)"
198 "Not specified machinery"       
199 "Household appliances (363)"    
207 "Radio, T.V., and communication equipment (365, 366)"
208 "Elec machinery, equipment, and supplies, n.e.c. (361, 362, 364, 367, 369)"
209 "Not specified electrical machinery, equipment, and supplies"
219 "Motor vehicles and motor vehicle equipment (371)"
227 "Aircraft and parts (372)"      
228 "Ship and boat building and repairing (373)"
229 "Railroad locomotives and equipment (374)"
237 "Mobile dwellings and campers (3791)"
238 "Cycles and miscellaneous transportation equipment (375, 3799)"
239 "Scientific and controlling instruments (381, 382)"
247 "Optical and health services supplies (383, 384, 385)"
248 "Photographic equipment and supplies (386)"
249 "Watches, clocks, and clockwork-operated devices (387)"
257 "Not specified professional equipment"
258 "Ordnance (19)***"              
259 "Miscellaneous manufacturing industries (39)"
267 "Manufacturing, durable goods--allocated"
268 "Meat products (201)"           
269 "Dairy products (202)"          
278 "Canning and preserving fruits, vegetables, and sea foods (203)"
279 "Grain-mill products (204, 0713)"
287 "Bakery products (205)"         
288 "Confectionery and related products (207)"
289 "Beverage industries (208)"     
297 "Miscellaneous food preparation and kindred products (206,209)"
298 "Not specified food industries" 
299 "Tobacco manufactures (21)"     
307 "Knitting mills (225)"          
308 "Dyeing and finishing textiles, except wool and knit goods (226)"
309 "Floor coverings, except hard surface (227)"
317 "Yarn, thread, and fabric mills (221-224, 228)"
318 "Miscellaneous textile mill products (229)"
319 "Apparel and accessories (231-238)"
327 "Miscellaneous fabricated textile products (239)"
328 "Pulp, paper, and paperboard mills (261-263, 266)"
329 "Miscellaneous paper and pulp products (264)"
337 "Paperboard containers and boxes (265)"
338 "Newspaper publishing and printing (271)"
339 "Printing, publishing, and allied industries, except newspapers (272-279)"
347 "Industrial chemicals (281)"    
348 "Plastics, synthetics and resins, except fibers (282, except 2823 and 2824)"
349 "Synthetic fibers (2823, 2824)" 
357 "Drugs and medicines (283)"     
358 "Soaps and cosmetics (284)"     
359 "Paints, varnishes, and related products (285)"
367 "Agricultural chemicals (287)"  
368 "Miscellaneous chemicals (286, 289)"
369 "Not specified chemicals and allied products"
377 "Petroleum refining (291)"      
378 "Miscellaneous petroleum and coal products (295, 299)"
379 "Rubber products (301-303, 306)"
387 "Miscellaneous plastic products (307)"
388 "Tanned, curried, and finished leather (311)"
389 "Footwear, except rubber (313, 314)"
397 "Leather products, except footwear (312, 315-317, 319)"
399 "Manufacturing, nondurable goods--allocated"
398 "NOT SPECIFIED MANUFACTURING INDUSTRIES"
407 "Railroads and railway express service (40)"
408 "Street railways and bus lines (411, 413-415, 417)"
409 "Taxicab service (412)"         
417 "Trucking service (421,423)"    
418 "Warehousing and storage (422)" 
419 "Water transportation (44)"     
427 "Air transportation (45)"       
428 "Pipe lines, except natural gas (46)"
429 "Services incidental to transportation (47)"
447 "Radio broadcasting and television (483)"
448 "Telephone (wire and radio) (481)"
449 "Telegraph and miscellaneous communication services (482, 489)"
467 "Electric light and power (491)"
468 "Electric-gas utilities (493)"  
469 "Gas and steam supply systems (492, 496)"
477 "Water supply (494)"            
478 "Sanitary services (495)"       
479 "Other and not specified utilities (497)"
499 "Transportation, communications, and other public utilities--allocated"
507 "Motor vehicles and equipment (501)"
508 "Drugs, chemicals and allied products (502)"
509 "Dry goods and apparel (503)"   
527 "Food and related products (504)"
528 "Farm products--raw materials (505)"
529 "Electrical goods (506)"        
537 "Hardware, plumbing, and heating supplies (507)"
538 "Not specified electrical and hardware products"
539 "Machinery equipment and supplies (508)"
557 "Metals and minerals, n.e.c. (5091)"
558 "Petroleum products (5092)"     
559 "Scrap and waste materials (5093)"
567 "Alcoholic beverages (5095)"    
568 "Paper and its products (5096)" 
569 "Lumber and construction materials (5098)"
587 "Wholesalers, n.e.c. (5094, 5097, 5099)"
588 "Not specified wholesale trade" 
599 "Wholesale trade--allocated"    
607 "Lumber and building material retailing (521-524)"
608 "Hardware and farm equipment stores (525)"
609 "Department and mail order establishments (531, 532)"
617 "Limited price variety stores (533)"
618 "Vending machine operators (534)"
619 "Direct selling establishments (535)"
627 "Miscellaneous general merchandise stores (539)"
628 "Grocery stores (541)"          
629 "Dairy products stores (545)"   
637 "Retail bakeries (546)"         
638 "Food stores, n.e.c. (542-544, 549)"
639 "Motor vehicle dealers (551, 552)"
647 "Tire, battery, and accessory dealers (553)"
648 "Gasoline service stations (554)"
649 "Miscellaneous vehicle dealers (559)"
657 "Apparel and accessories stores, except shoe stores (56 except 566)"
658 "Shoe stores (566)"             
667 "Furniture and home furnishings stores (571)"
668 "Household appliances, TV, and radio stores (572, 573)"
669 "Eating and drinking places (58)"
677 "Drug stores (591)"             
678 "Liquor stores (592)"           
679 "Farm and garden supply stores (596)"
687 "Jewelry stores (597)"          
688 "Fuel and ice dealers (598)"    
689 "Retail florists (5992)"        
697 "Miscellaneous retail stores (593-595, 599 exc. 5992)"
698 "Not specified retail trade"    
699 "Retail trade--allocated"       
707 "Banking (60)"                  
708 "Credit agencies (61)"          
709 "Security, commodity brokerage, and investment companies (62, 67)"
717 "Insurance (63, 64)"            
718 "Real estate, incl. real estate-insurance-law offices (65, 66)"
719 "Finance, insurance, and real estate--allocated"
727 "Advertising (731)"             
728 "Services to dwellings and other buildings (734)"
729 "Commercial research, development, and testing labs (7391, 7397)"
737 "Employment and temporary help agencies (736, 7398)"
738 "Business management and consulting services (part 7392)"
739 "Computer programing services (part 7392)"
747 "Detective and protective services (7393)"
748 "Business services, n.e.c. (732, 733, 735, 7394, 7395, 7396, 7399)"
749 "Automobile services, except repair (751, 752, 754)"
757 "Automobile repair and related services (753)"
758 "Electrical repair shops (762, 7694)"
759 "Miscellaneous repair services (763, 764, 769, except 7694)"
767 "Business and repair services--allocated"
769 "Private households (88)"       
777 "Hotels and motels (701)"       
778 "Lodging places, except hotels and motels (702, 703, 704)"
779 "Laundering, cleaning, and other garment services (721, 727)"
787 "Beauty shops (723)"            
788 "Barber shops (724)"            
789 "Shoe repair shops (725)"       
797 "Dressmaking shops (part 729)"  
798 "Miscellaneous personal services (722, 726, part 729)"
799 "Personal services--allocated"  
807 "Theaters and motion pictures (78, 792)"
808 "Bowling alleys, billiard and pool parlors (793)"
809 "Miscellaneous entertainment and recreation services (791, 794)"
817 "Entertainment and recreation services--allocated"
828 "Offices of physicians (801, 803)"
829 "Offices of dentists (802)"     
837 "Offices of chiropractors (804)"
838 "Hospitals (806)"               
839 "Convalescent institutions (8092)"
847 "Offices of health practitioners, n.e.c. (part 8099)"
848 "Health services, n.e.c. (807, part 8099)"
849 "Legal services (81)"           
857 "Elementary and secondary schools (821)"
858 "Colleges and universities (822)"
859 "Libraries (823)"               
867 "Educational services, n.e.c. (824, 829)"
868 "Not specified educational services"
869 "Museums, art galleries,and zoos (84)"
877 "Religious organizations(866)"  
878 "Welfare services (part 867)"   
879 "Residential welfare facilities (part 867)"
887 "Nonprofit membership organizations (861-865, 869)"
888 "Engineering and architectural services (891)"
889 "Accounting, auditing, and bookkeeping services (893)"
897 "Miscellaneous professional and related services (892, 899)"
899 "Professional and related services--allocated"
907 "Postal service (part 9190)"    
917 "Federal public administration (part 9190, 9490)"
927 "State public administration (9290)"
937 "Local public administration (9390)"
;
#delimit cr
lab val ind70 ind70


	/* 1983-1991 */

if 1983<=`year' & `year'<=1991 {

if `year'==1991 {replace ind80=adind}

#delimit ;
lab def ind80
10  "Agricultural production, crops (01)"
11  "Agricultural production, livestock (02)"
20  "Agricultural services, except horticultural(07, except 078)[83-91]"
21  "Horticultural services (078) [83-91]"
30  "Forestry (08) [83-91]"         
31  "Fishing, hunting, and trapping (09) [83-91]"
40  "Metal mining (10)"             
41  "Coal mining (11, 12)"          
42  "Crude petroleum and natural gas extraction (13) [83-91]"
50  "Nonmetallic mining and quarrying, except fuel (14)"
60  "CONSTRUCTION (15, 16, 17)"     
100 "Meat products (201)"           
101 "Dairy products (202)"          
102 "Canned and preserved fruits and vegetables (203) [83-91]"
110 "Grain mill products (204)"     
111 "Bakery products (205)"         
112 "Sugar and confectionery products (206)"
120 "Beverage industries (208)"     
121 "Miscellaneous food preparations & kindred products (207,209)"
122 "Not specified food industries" 
130 "Tobacco manufactures (21)"     
131 "not used"                      
132 "Knitting mills (225)"          
140 "Dyeing & finishing textiles, except wool & knit goods (226)"
141 "Floor coverings, except hard surface (227) [83-91]"
142 "Yarn, thread, and fabric mills (228, 221-224)"
150 "Miscellaneous textile mill products (229)"
151 "Apparel and accessories, except knit (231-238)"
152 "Miscellaneous fabricated textile products (239)"
160 "Pulp, paper, and paperboard mills (261-263, 266)"
161 "Miscellaneous paper and pulp products (264)"
162 "Paperboard containers and boxes (265)"
171 "Newspaper publishing and printing (271)"
172 "Printing, publishing, & allied industries, except newspapers (272-279)"
180 "Plastics, synthetics, and resins (282)"
181 "Drugs (283)"                   
182 "Soaps and cosmetics (284)"     
190 "Paints, varnishes, and related products (285)"
191 "Agricultural chemicals (287)"  
192 "Industrial and miscellaneous chemicals (281, 286, 289)"
200 "Petroleum refining (291)"      
201 "Miscellaneous petroleum and coal products (295, 299)"
210 "Tires and inner tubes (301)"   
211 "Other rubber products, and plastics footwear and belting (302-304,306)"
212 "Miscellaneous plastics products (307)"
220 "Leather tanning and finishing (311)"
221 "Footwear, except rubber and plastic (313, 314)"
222 "Leather products, except footwear (315-317, 319)"
230 "Logging (241)"                 
231 "Sawmills, planning mills, and millwork (242, 243)"
232 "Wood buildings and mobile homes (245)"
241 "Miscellaneous wood products (244, 249)"
242 "Furniture and fixtures (25)"   
250 "Glass and glass products (321-323)"
251 "Cement, concrete, gypsum, and plaster products (324, 327)"
252 "Structural clay products (325)"
261 "Pottery and related products (326)"
262 "Miscellaneous nonmetallic mineral & stone products (328,329)"
270 "Blast furnaces, steelworks, rolling & finishing mills (331)"
271 "Iron and steel foundries (332)"
272 "Primary aluminum industries (3334, part 334, 3353-3355,3361)"
280 "Oth prim metal inds (3331-3333,3339,pt334,3351,3356,3357,3362,3369,339)"
281 "Cutlery, handtools, and other hardware (342) [83-91]"
282 "Fabricated structural metal products (344)"
290 "Screw machine products (345)"  
291 "Metal forgings and stampings (346)"
292 "Ordnance (348)"                
300 "Miscellaneous fabricated metal products (341,343,347,349)"
301 "Not specified metal industries"
310 "Engines and turbines (351)"    
311 "Farm machinery and equipment (352)"
312 "Construction and material handling machines (353)"
320 "Metalworking machinery (354)"  
321 "Office and accounting machines (357, except 3573)"
322 "Electronic computing equipment (3573) [83-91]"
331 "Machinery, except electrical, n.e.c. (355, 356, 358, 359)"
332 "Not specified machinery"       
340 "Household appliances (363)"    
341 "Radio, T.V., and communication equipment (365, 366)"
342 "Electrical machinery, equipment, supplies, n.e.c. (361,362,364,367,369)"
350 "Not specified electrical machinery, equipment, & supplies"
351 "Motor vehicles and motor vehicle equipment (371)"
352 "Aircraft and parts (372)"      
360 "Ship and boat building and repairing (373)"
361 "Railroad locomotives and equipment (374)"
362 "Guided missiles, space vehicles, and parts (376)"
370 "Cycles and miscellaneous transportation equipment (375, 379)"
371 "Scientific and controlling instruments (381, 382)"
372 "Optical and health services supplies (383, 384, 385) [83-91]"
380 "Photographic equipment and supplies (386)"
381 "Watches, clocks, and clockwork operated devices (387)"
382 "Not specified professional equipment [83-91]"
390 "Toys, amusement, and sporting goods (394)"
391 "Miscellaneous manufacturing industries (39 except 394)"
392 "Not specified manufacturing industries*"
400 "Railroads (40)"                
401 "Bus service and urban transit (41 except 412)"
402 "Taxicab service (412)"         
410 "Trucking service (421, 423)"   
411 "Warehousing and storage (422)" 
412 "U.S. Postal Service (43)"      
420 "Water transportation (44)"     
421 "Air transportation (45)"       
422 "Pipe lines, except natural gas (46)"
432 "Services incidental to transportation (47)"
440 "Radio and television broadcasting (483) [83-91]"
441 "Telephone, wire and radio (481) [83-91]"
442 "Telegraph and miscellaneous communication services (482, 489)"
460 "Electric light and power (491) [83-91]"
461 "Gas and steam supply systems (492, 496) [83-91]"
462 "Electric and gas, and other combinations (493) [83-91]"
470 "Water supply and irrigation (494, 497)"
471 "Sanitary services (495)"       
472 "Not specified utilities"       
500 "Motor vehicles and equipment (501)"
501 "Furniture and home furnishings (502)"
502 "Lumber and construction materials (503)"
510 "Sporting goods, toys, and hobby goods (504) [83-91]"
511 "Metals and minerals, except petroleum (505)"
512 "Electrical goods (506)"        
521 "Hardware, plumbing and heating supplies (507)"
522 "Not specified electrical and hardware products [83-91]"
530 "Machinery, equipment, and supplies (508)"
531 "Scrap and waste materials (5093)"
532 "Miscellaneous wholesale, durable goods (5094, 5099)"
540 "Paper and paper products (511)"
541 "Drugs, chemicals, and allied products (512, 516)"
542 "Apparel, fabrics, and notions (513)"
550 "Groceries and related products (514)"
551 "Farm products - raw materials (515)"
552 "Petroleum products (517)"      
560 "Alcoholic beverages (518)"     
561 "Farm supplies (5191)"          
562 "Miscellaneous wholesale, nondurable goods (5194, 5198, 5199)"
571 "Not specified wholesale trade" 
580 "Lumber and building material retailing (521, 523)"
581 "Hardware stores (525)"         
582 "Retail nurseries and garden stores (526)"
590 "Mobile home dealers (527)"     
591 "Department stores (531)"       
592 "Variety stores (533)"          
600 "Miscellaneous general merchandise stores (539)"
601 "Grocery stores (541)"          
602 "Dairy products stores (545)"   
610 "Retail bakeries (546)"         
611 "Food stores, n.e.c. (542, 543, 544, 549)"
612 "Motor vehicle dealers (551, 552)"
620 "Auto and home supply stores (553)"
621 "Gasoline service stations (554)"
622 "Miscellaneous vehicle dealers (555, 556, 557, 559)"
630 "Apparel and accessory stores, except shoe (56, except 566)[83-91]"
631 "Shoe stores (566) [83-91]"     
632 "Furniture and home furnishings stores (571) [83-91]"
640 "Household appliances, TV, and radio stores (572,573) [83-91]"
641 "Eating and drinking places (58)"
642 "Drug stores (591)"             
650 "Liquor stores (592)"
651 "Sporting goods, bicycles, and hobby stores (5941,5945,5946)"
652 "Book and stationery stores (5942, 5943)"
660 "Jewelry stores (5944)"         
661 "Sewing, needlework, and piece goods stores (5949) [83-91]"
662 "Mail order houses (5961) [83-91]"
670 "Vending machine operators (5962)"
671 "Direct selling establishments (5963)"
672 "Fuel and ice dealers (598) [83-91]"
681 "Retail florists (5992)"
682 "Miscellaneous retail stores (593,5947,5948,5993,5994,5999)"
691 "Not specified retail trade"    
700 "Banking (60)"                  
701 "Savings and loan associations (612) [83-91]"
702 "Credit agencies, n.e.c. (61, except 612)"
710 "Security, commodity brokerage, and investment companies (62,67)"
711 "Insurance (63, 64)"            
712 "Real estate, including real estate-insurance-law offices (65,66)[83-91]"
721 "Advertising (731)"             
722 "Services to dwellings and other buildings (734)"
730 "Commercial research, development, and testing labs (7391, 7397) [83-91]"
731 "Personnel supply services (736)"
732 "Business management and consulting services (7392) [83-91]"
740 "Computer and data processing services (737) [83-91]"
741 "Detective and protective services (7393) [83-91]"
742 "Business services, n.e.c.(732,733,735,7394,7395,7396,7399)[83-91]"
750 "Automotive services, except repair (751, 752, 754) [83-91]"
751 "Automotive repair shops (753) [83-91]"
752 "Electrical repair shops (762, 7694)"
760 "Miscellaneous repair services (763, 764, 7692, 7699)"         
761 "Private households (88)"       
762 "Hotels and motels (701)"       
770 "Lodging places, except hotels and motels (702, 703, 704)"
771 "Laundry, cleaning, and garment services (721)"
772 "Beauty shops (723)"            
780 "Barber shops (724)"            
781 "Funeral service and crematories (726)"
782 "Shoe repair shops (725)"       
790 "Dressmaking shops (part 729)"  
791 "Miscellaneous personal services (722, part 729)"
800 "Theaters and motion pictures (78, 792)"
801 "Bowling alleys, billiard and pool parlors (793) [83-91]"
802 "Miscellaneous entertainment & recreation services (791, 794, 799) [83-91]"
812 "Offices of physicians (801, 803) [83-91]"
820 "Offices of dentists (802) [83-91]"
821 "Offices of chiropractors (8041) [83-91]"
822 "Offices of optometrists (8042) [83-91]"
830 "Offices of health practitioners, n.e.c. (8049) [83-91]"
831 "Hospitals (806)"               
832 "Nursing and personal care facilities (805)"
840 "Health services, n.e.c. (807, 808, 809)"
841 "Legal services (81)"           
842 "Elementary and secondary schools (821)"
850 "Colleges and universities (822)"
851 "Business, trade, and vocational schools (824) [83-91]"
852 "Libraries (823)"               
860 "Educational services, n.e.c. (829)"
861 "Job training and vocational rehabilitation services (833)"
862 "Child day care services (835)" 
870 "Residential care facilities, without nursing (836)"
871 "Social services, n.e.c. (832, 839)"
872 "Museums, art galleries, and zoos (84)"
880 "Religious organizations (866)" 
881 "Membership organizations (861-865, 869) [83-91]"
882 "Engineering, architectural, and surveying services (891)"
890 "Accounting, auditing, and bookkeeping services (893)"
891 "Noncommercial educational and scientific research (892) [83-91]"
892 "Miscellaneous professional and related services (899) [83-91]"
900 "Executive and legislative offices (911-913)"
901 "General government, n.e.c. (919)"
910 "Justice, public order, and safety (92)"
921 "Public finance, taxation, and monetary policy (93)"
922 "Administration of human resources programs (94)"
930 "Administration of environmental quality & housing programs (95)"
931 "Administration ofeconomic programs (96)"
932 "National securityand international affairs (97)"
991 "Labor force status is unemployed and whose last job was Armed Forces"
992 "Labor force status is unemployed"
;
#delimit cr
lab val ind80 ind80
}

	/* 1992 - 2002 */

if 1992<=`year' & `year'<=2002 {

replace ind80=peio1icd
replace ind80=. if ind80<10
replace ind80=. if 992<ind80

#delimit ;
lab def ind80
10  "Agricultural production, crops (01)"
11  "Agricultural production, livestock (02)"
12  "Veterinary services [1992+]"   
20  "Landscape and horticultutal services [92+]"
30  "Agricultural services, n.e.c. [92+]"
31  "Forestry [92+]"                
32  "Fishing, hunting, and trapping [92+]"
40  "Metal mining (10)"             
41  "Coal mining (11, 12)"          
42  "Oil and gas extraction [92+]"  
50  "Nonmetallic mining and quarrying, except fuel (14)"
60  "CONSTRUCTION (15, 16, 17)"     
100 "Meat products (201)"           
101 "Dairy products (202)"          
102 "Canned, frozen, and preserved fruits and vegetables"
110 "Grain mill products (204)"     
111 "Bakery products (205)"         
112 "Sugar and confectionery products (206)"
120 "Beverage industries (208)"     
121 "Miscellaneous food preparations & kindred products (207,209)"
122 "Not specified food industries" 
130 "Tobacco manufactures (21)"     
131 "not used"                      
132 "Knitting mills (225)"          
140 "Dyeing & finishing textiles, except wool & knit goods (226)"
141 "Carpets and rugs [92+]"        
142 "Yarn, thread, and fabric mills (228, 221-224)"
150 "Miscellaneous textile mill products (229)"
151 "Apparel and accessories, except knit (231-238)"
152 "Miscellaneous fabricated textile products (239)"
160 "Pulp, paper, and paperboard mills (261-263, 266)"
161 "Miscellaneous paper and pulp products (264)"
162 "Paperboard containers and boxes (265)"
171 "Newspaper publishing and printing (271)"
172 "Printing, publishing, & allied industries, except newspapers (272-279)"
180 "Plastics, synthetics, and resins (282)"
181 "Drugs (283)"                   
182 "Soaps and cosmetics (284)"     
190 "Paints, varnishes, and related products (285)"
191 "Agricultural chemicals (287)"  
192 "Industrial and miscellaneous chemicals (281, 286, 289)"
200 "Petroleum refining (291)"      
201 "Miscellaneous petroleum and coal products (295, 299)"
210 "Tires and inner tubes (301)"   
211 "Other rubber products, and plastics footwear and belting (302-304,306)"
212 "Miscellaneous plastics products (307)"
220 "Leather tanning and finishing (311)"
221 "Footwear, except rubber and plastic (313, 314)"
222 "Leather products, except footwear (315-317, 319)"
230 "Logging (241)"                 
231 "Sawmills, planning mills, and millwork (242, 243)"
232 "Wood buildings and mobile homes (245)"
241 "Miscellaneous wood products (244, 249)"
242 "Furniture and fixtures (25)"   
250 "Glass and glass products (321-323)"
251 "Cement, concrete, gypsum, and plaster products (324, 327)"
252 "Structural clay products (325)"
261 "Pottery and related products (326)"
262 "Miscellaneous nonmetallic mineral & stone products (328,329)"
270 "Blast furnaces, steelworks, rolling & finishing mills (331)"
271 "Iron and steel foundries (332)"
272 "Primary aluminum industries (3334, part 334, 3353-3355,3361)"
280 "Oth prim metal inds (3331-3333,3339,pt334,3351,3356,3357,3362,3369,339)"
281 "Cutlery, handtools, and general hardware [92+]"
282 "Fabricated structural metal products (344)"
290 "Screw machine products (345)"  
291 "Metal forgings and stampings (346)"
292 "Ordnance (348)"                
300 "Miscellaneous fabricated metal products (341,343,347,349)"
301 "Not specified metal industries"
310 "Engines and turbines (351)"    
311 "Farm machinery and equipment (352)"
312 "Construction and material handling machines (353)"
320 "Metalworking machinery (354)"  
321 "Office and accounting machines (357, except 3573)"
322 "Computers and related equipment [92+]"
331 "Machinery, except electrical, n.e.c. (355, 356, 358, 359)"
332 "Not specified machinery"       
340 "Household appliances (363)"    
341 "Radio, T.V., and communication equipment (365, 366)"
342 "Electrical machinery, equipment, supplies, n.e.c. (361,362,364,367,369)"
350 "Not specified electrical machinery, equipment, & supplies"
351 "Motor vehicles and motor vehicle equipment (371)"
352 "Aircraft and parts (372)"      
360 "Ship and boat building and repairing (373)"
361 "Railroad locomotives and equipment (374)"
362 "Guided missiles, space vehicles, and parts (376)"
370 "Cycles and miscellaneous transportation equipment (375, 379)"
371 "Scientific and controlling instruments (381, 382)"
372 "Medical, dental, and optical instruments and supplies [92+]"
380 "Photographic equipment and supplies (386)"
381 "Watches, clocks, and clockwork operated devices (387)"
390 "Toys, amusement, and sporting goods (394)"
391 "Miscellaneous manufacturing industries (39 except 394)"
392 "Not specified manufacturing industries*"
400 "Railroads (40)"                
401 "Bus service and urban transit (41 except 412)"
402 "Taxicab service (412)"         
410 "Trucking service (421, 423)"   
411 "Warehousing and storage (422)" 
412 "U.S. Postal Service (43)"      
420 "Water transportation (44)"     
421 "Air transportation (45)"       
422 "Pipe lines, except natural gas (46)"
432 "Services incidental to transportation (47)"
440 "Radio and television broadcasting and cable [92+]"
441 "Telephone communications [92+]"
442 "Telegraph and miscellaneous communication services (482, 489)"
450 "Electric light and power [92+]"
451 "Gas and steam supply systems [92+]"
452 "Electric and gas, and other combinations [92+]"
470 "Water supply and irrigation (494, 497)"
471 "Sanitary services (495)"       
472 "Not specified utilities"       
500 "Motor vehicles and equipment (501)"
501 "Furniture and home furnishings (502)"
502 "Lumber and construction materials (503)"
510 "Professional and commercial equipment and supplies [92+]"
511 "Metals and minerals, except petroleum (505)"
512 "Electrical goods (506)"        
521 "Hardware, plumbing and heating supplies (507)"
530 "Machinery, equipment, and supplies (508)"
531 "Scrap and waste materials (5093)"
532 "Miscellaneous wholesale, durable goods (5094, 5099)"
540 "Paper and paper products (511)"
541 "Drugs, chemicals, and allied products (512, 516)"
542 "Apparel, fabrics, and notions (513)"
550 "Groceries and related products (514)"
551 "Farm products - raw materials (515)"
552 "Petroleum products (517)"      
560 "Alcoholic beverages (518)"
561 "Farm supplies (5191)"          
562 "Miscellaneous wholesale, nondurable goods (5194, 5198, 5199)"
571 "Not specified wholesale trade" 
580 "Lumber and building material retailing (521, 523)"
581 "Hardware stores (525)"         
582 "Retail nurseries and garden stores (526)"
590 "Mobile home dealers (527)"     
591 "Department stores (531)"       
592 "Variety stores (533)"          
600 "Miscellaneous general merchandise stores (539)"
601 "Grocery stores (541)"          
602 "Dairy products stores (545)"   
610 "Retail bakeries (546)"         
611 "Food stores, n.e.c. (542, 543, 544, 549)"
612 "Motor vehicle dealers (551, 552)"
620 "Auto and home supply stores (553)"
621 "Gasoline service stations (554)"
622 "Miscellaneous vehicle dealers (555, 556, 557, 559)"
623 "Apparel and accessory stores, except shoe [92+]"
630 "Shoe stores [92+]"             
631 "Furniture and home furnishings stores [92+]"
632 "Household appliance stores [92+]"
633 "Radio, TV, and computer stores [92+]"
640 "Music stores [92+]"            
641 "Eating and drinking places (58)"
642 "Drug stores (591)"             
650 "Liquor stores (592)"           
651 "Sporting goods, bicycles, and hobby stores (5941,5945,5946)"
652 "Book and stationery stores (5942, 5943)"
660 "Jewelry stores (5944)"         
661 "Gift, novelty, and souvenir shops [92+]"
662 "Sewing, needlework, and piece goods stores [92+]"
663 "Catalog and mail order houses [92+]"
670 "Vending machine operators (5962)"
671 "Direct selling establishments (5963)"
672 "Fuel dealers [92+]"            
681 "Retail florists (5992)"        
682 "Miscellaneous retail stores (593,5947,5948,5993,5994,5999)"
691 "Not specified retail trade"    
700 "Banking (60)"                  
701 "Savings institutions, including credit unions [92+]"
702 "Credit agencies, n.e.c. (61, except 612)"
710 "Security, commodity brokerage, and investment companies (62,67)"
711 "Insurance (63, 64)"            
712 "Real estate, including real estate-insurance offices [92+]"
721 "Advertising (731)"             
722 "Services to dwellings and other buildings (734)"
731 "Personnel supply services (736)"
732 "Computer and data processinf services [92+]"
740 "Detective and protective sevices [92+]"
741 "Business services, n.e.c [92+]"
742 "Automotive rental and leasing, without drivers [92+]"
750 "Automoblie parking and carwashes [92+]"
751 "Automotive repair and related services [92+]"
752 "Electrical repair shops (762, 7694)"
760 "Miscellaneous repair services (763, 764, 7692, 7699)"
761 "Private households (88)"       
762 "Hotels and motels (701)"       
770 "Lodging places, except hotels and motels (702, 703, 704)"
771 "Laundry, cleaning, and garment services (721)"
772 "Beauty shops (723)"            
780 "Barber shops (724)"            
781 "Funeral service and crematories (726)"
782 "Shoe repair shops (725)"       
790 "Dressmaking shops (part 729)"  
791 "Miscellaneous personal services (722, part 729)"
800 "Theaters and motion pictures (78, 792)"
801 "Video tape rental [92+]"       
802 "Bowling centers [92+]"         
810 "Miscellaneous entertainment and recreational services [92+]"
812 "Offices and clinics of physicians [92+]"
820 "Offices and clinics of dentists [92+]"
821 "Offices and clinics of chiropractors [92+]"
822 "Offices and clinics of optometrists [92+]"
830 "Offices and clinics of health practitioners, n.e.c [92+]"
831 "Hospitals (806)"               
832 "Nursing and personal care facilities (805)"
840 "Health services, n.e.c. (807, 808, 809)"
841 "Legal services (81)"           
842 "Elementary and secondary schools (821)"
850 "Colleges and universities (822)"
851 "Vocational schools [92+]"      
852 "Libraries (823)"               
860 "Educational services, n.e.c. (829)"
861 "Job training and vocational rehabilitation services (833)"
862 "Child day care services (835)" 
863 "Family child care homes [92+]" 
870 "Residential care facilities, without nursing (836)"
871 "Social services, n.e.c. (832, 839)"
872 "Museums, art galleries, and zoos (84)"
873 "Labor unions [92+]"            
880 "Religious organizations (866)" 
881 "Membership organizations, n.e.c [92+]"
882 "Engineering, architectural, and surveying services (891)"
890 "Accounting, auditing, and bookkeeping services (893)"
891 "Research, development, and testing services [92+]"
892 "Management and public relations services [92+]"
893 "Miscellaneous professional and related services [92+]"
900 "Executive and legislative offices (911-913)"
901 "General government, n.e.c. (919)"
910 "Justice, public order, and safety (92)"
921 "Public finance, taxation, and monetary policy (93)"
922 "Administration of human resources programs (94)"
930 "Administration of environmental quality & housing programs (95)"
931 "Administration ofeconomic programs (96)"
932 "National securityand international affairs (97)"
991 "Labor force status is unemployed and whose last job was Armed Forces"
992 "Labor force status is unemployed"
;
#delimit cr
lab val ind80 ind80
}

	/* 2003 - 2008 */

if 2003<=`year' & `year'<=2008 {

replace ind03=peio1icd
replace ind03=. if peio1icd<=0
replace ind03=. if peio1icd==9970 /* "Problem referral" */
replace ind03=. if peio1icd==9990 /* "Uncodable (Includes Refused or reported Classified)" */
}

#delimit ;
lab def ind03
0170 "Crop production 111"
0180 "Animal production 112"
0190 "Forestry except logging 1131, 1132"
0270 "Logging 1133"
0280 "Fishing, hunting, and trapping 114"
0290 "Support activities for agriculture and forestry 115"
0370 "Oil and gas extraction 211"
0380 "Coal mining 2121"
0390 "Metal ore mining 2122"
0470 "Nonmetallic mineral mining and quarrying 2123"
0480 "Not specified type of mining Part of 21"
0490 "Support activities for mining 213"
0570 "Electric power generation, transmission and distribution Pt. 2211"
0580 "Natural gas distribution Pt. 2212"
0590 "Electric and gas, and other combinations Pts. 2211,2212"
0670 "Water, steam, air-conditioning, and irrigation systems 22131,22133"
0680 "Sewage treatment facilities 22132"
0690 "Not specified utilities Part of 22"
0770 "**Construction 23"
1070 "Animal food, grain and oilseed milling 3111,3112"
1080 "Sugar and confectionery products 3113"
1090 "Fruit and vegetable preserving and specialty food manufacturing 3114"
1170 "Dairy product manufacturing 3115"
1180 "Animal slaughtering and processing 3116"
1190 "Retail bakeries 311811"
1270 "Bakeries, except retail 3118 exc.311811"
1280 "Seafood and other miscellaneous foods, n.e.c. 3117,3119"
1290 "Not specified food industries Part of 311"
1370 "Beverage manufacturing 3121"
1390 "Tobacco manufacturing 3122"
1470 "Fiber, yarn, and thread mills 3131"
1480 "Fabric mills, except knitting 3132 exc.31324"
1490 "Textile and fabric finishing and coating mills 3133"
1570 "Carpet and rug mills 31411"
1590 "Textile product mills, except carpets and rugs 314 exc.31411"
1670 "Knitting mills 31324, 3151"
1680 "Cut and sew apparel manufacturing 3152"
1690 "Apparel accessories and other apparel manufacturing 3159"
1770 "Footwear manufacturing 3162"
1790 "Leather tanning and products, except footwear manufacturing 3161,3169"
1870 "Pulp, paper, and paperboard mills 3221"
1880 "Paperboard containers and boxes 32221"
1890 "Miscellaneous paper and pulp products 32222,32223,32229"
1990 "Printing and related support activities 3231"
2070 "Petroleum refining 32411"
2090 "Miscellaneous petroleum and coal products 32419"
2170 "Resin, synthetic rubber and fibers, and filaments manufacturing 3252"
2180 "Agricultural chemical manufacturing 3253"
2190 "Pharmaceutical and medicine manufacturing 3254"
2270 "Paint, coating, and adhesive manufacturing B46 3255"
2280 "Soap, cleaning compound, and cosmetics manufacturing 3256"
2290 "Industrial and miscellaneous chemicals 3251,3259"
2370 "Plastics product manufacturing 3261"
2380 "Tire manufacturing 32621"
2390 "Rubber products, except tires, manufacturing 32622,32629"
2470 "Pottery, ceramics, and related products manufacturing 32711"
2480 "Structural clay product manufacturing 32712"
2490 "Glass and glass product manufacturing 3272"
2570 "Cement, concrete, lime, and gypsum product manufacturing 3273,3274"
2590 "Miscellaneous nonmetallic mineral product manufacturing 3279"
2670 "Iron and steel mills and steel product manufacturing 3311,3312"
2680 "Aluminum production and processing 3313"
2690 "Nonferrous metal, except aluminum, production and processing 3314"
2770 "Foundries 3315"
2780 "Metal forgings and stampings 3321"
2790 "Cutlery and hand tool manufacturing 3322"
2870 "Structural metals, & tank & shipping container manufacturing 3323,3324"
2880 "Machine shops; turned product; screw, nut and bolt activities 3327"
2890 "Coating, engraving, heat treating and allied activities 3328"
2970 "Ordnance 332992-332995"
2980 "Misc fab metal prod manu 3325,3326,3329 exc.332992,332993,332994,332995"
2990 "Not specified metal industries part of 331 and 332"
3070 "Agricultural implement manufacturing 33311"
3080 "Construction, mining and oil field manufacturing 33312,33313"
3090 "Commercial and service industry machinery manufacturing 3333"
3170 "Metalworking machinery manufacturing 3335"
3180 "Engines, turbines, and power transmission equipment manufacturing 3336"
3190 "Machinery manufacturing, n.e.c. 3332,3334,3339"
3290 "Not specified machinery manufacturing Part of 333"
3360 "Computer and peripheral equipment manufacturing 3341"
3370 "Communications, audio, and video equipment manufacturing 3342,3343"
3380 "Navig, measuring, electromedical, & control instrum manuf 3345"
3390 "Electronic component and product manufacturing, n.e.c. 3344,3346"
3470 "Household appliance manufacturing 3352"
3490 "Electrical lighting, equipment, and supplies manuf, n.e.c.3351,3353,3359"
3570 "Motor vehicles & motor vehicle equipment manufacturing 3361,3362,3363"
3580 "Aircraft and parts manufacturing 336411-336413"
3590 "Aerospace products and parts manufacturing 336414,336415,336419"
3670 "Railroad rolling stock manufacturing 3365"
3680 "Ship and boat building 3366"
3690 "Other transportation equipment manufacturing 3369"
3770 "Sawmills and wood preservation 3211"
3780 "Veneer, plywood, and engineered wood products 3212"
3790 "Prefabricated wood buildings and mobile homes 321991,321992"
3870 "Miscellaneous wood products manuf 3219 exc.321991,321992"
3890 "Furniture and related products manufacturing 337"
3960 "Medical equipment and supplies manufacturing 3391"
3970 "Toys, amusement, and sporting goods manufacturing 33992,33993"
3980 "Miscellaneous manufacturing, n.e.c. 3399 exc.33992,33993"
3990 "Not specified manufacturing industries part of 31,32,33"
4070 "** Motor vehicles, parts and supplies, merchant wholesalers *4231"
4080 "** Furniture and home furnishing, merchant wholesalers *4232"
4090 "** Lumber and other construction materials, merchant wholesalers *4233"
4170 "** Prof & commercial equipment & supplies, merchant wholesalers *4234"
4180 "** Metals and minerals, except petroleum, merchant wholesalers *4235"
4190 "** Electrical goods, merchant wholesalers *4236"
4260 "** Hardware, plumbing, heating equip, supplies, merchant wholesalers *4237"
4270 "** Machinery, equipment, and supplies, merchant wholesalers *4238"
4280 "** Recyclable material, merchant wholesalers *42393"
4290 "** Miscellaneous durable goods, merchant wholesalers *4239 exc.42393"
4370 "** Paper and paper products, merchant wholesalers *4241"
4380 "** Drugs, sundries, chemical & allied products, merchant wholesalers *4242,4246"
4390 "** Apparel, fabrics, and notions, merchant wholesalers *4243"
4470 "** Groceries and related products, merchant wholesalers *4244"
4480 "** Farm product raw materials, merchant wholesalers *4245"
4490 "** Petroleum and petroleum products, merchant wholesalers *4247"
4560 "** Alcoholic beverages, merchant wholesalers *4248"
4570 "** Farm supplies, merchant wholesalers *42491"
4580 "** Miscellaneous nondurable goods, merchant wholesalers *4249 exc.42491"
4585 "*** Wholesale electronic markets, agents & brokers  *4251 (new industry)"
4590 "** Not specified wholesale trade Part of 42"
4670 "Automobile dealers 4411"
4680 "Other motor vehicle dealers 4412"
4690 "Auto parts, accessories, and tire stores 4413"
4770 "Furniture and home furnishings stores 442"
4780 "Household appliance stores 443111"
4790 "Radio, TV, and computer stores 443112,44312"
4870 "Building material and supplies dealers 4441 exc.44413"
4880 "Hardware stores 44413"
4890 "Lawn and garden equipment and supplies stores 4442"
4970 "Grocery stores 4451"
4980 "Specialty food stores 4452"
4990 "Beer, wine, and liquor stores 4453"
5070 "Pharmacies and drug stores 4461"
5080 "Health and personal care, except drug, stores 446 exc.44611"
5090 "Gasoline stations 447"
5170 "Clothing and accessories, except shoe, stores 448 exc.44821,4483"
5180 "Shoe stores 44821"
5190 "Jewelry, luggage, and leather goods stores 4483"
5270 "Sporting goods, camera, and hobby and toy stores 44313,45111,45112"
5280 "Sewing, needlework, and piece goods stores 45113"
5290 "Music stores 45114,45122"
5370 "Book stores and news dealers 45121"
5380 "****Department stores and discount stores 45211"
5390 "Miscellaneous general merchandise stores 4529"
5470 "Retail florists 4531"
5480 "Office supplies and stationery stores 45321"
5490 "Used merchandise stores 4533"
5570 "Gift, novelty, and souvenir shops 45322"
5580 "Miscellaneous retail stores 4539"
5590 "*** Electronic shopping (new industry) *454111"
5591 "*** Electronic auctions *454112 (new industry)"
5592 "** Mail order houses *454113"
5670 "Vending machine operators 4542"
5680 "Fuel dealers 45431"
5690 "Other direct selling establishments 45439"
5790 "Not specified retail trade Part of 44,45"
6070 "Air transportation 481"
6080 "Rail transportation 482"
6090 "Water transportation 483"
6170 "Truck transportation 484"
6180 "Bus service and urban transit 4851,4852,4854,4855,4859"
6190 "Taxi and limousine service 4853"
6270 "Pipeline transportation 486"
6280 "Scenic and sightseeing transportation 487"
6290 "Services incidental to transportation 488"
6370 "Postal Service 491"
6380 "Courier and messengers 492"
6390 "Warehousing and storage 493"
6470 "** Newspaper publishers 51111"
6480 "** Publishing, except newspapers and software 5111 exc.51111"
6490 "Software publishing 5112"
6570 "Motion pictures and video industries 5121"
6590 "Sound recording industries 5122"
6670 "Radio and television broadcasting and cable 5151,5152,5175"
6675 "*** Internet publishing and broadcasting (new industry) *5161"
6680 "Wired telecommunications carriers *5171"
6690 "Other telecommunications services *517 exc.5171,5175"
6692 "*** Internet service providers (new industry) *5181"
6695 "**** Data processing, hosting, and related services *5182"
6770 "Libraries and archives *51912"
6780 "Other information services *5191 exc.51912"
6870 "Banking and related activities 521,52211,52219"
6880 "Savings institutions, including credit unions 52212,52213"
6890 "Non-depository credit and related activities 5222,5223"
6970 "Securities, commodities, funds, trusts, & other fin investments 523,525"
6990 "Insurance carriers and related activities 524"
7070 "Real estate 531"
7080 "Automotive equipment rental and leasing 5321"
7170 "Video tape and disk rental 53223"
7180 "Other consumer goods rental 53221,53222,53229,5323"
7190 "Commercial, industrial, other intangible assets rental & leasing 5324,533"
7270 "Legal services 5411"
7280 "Accounting, tax preparation, bookkeeping, and payroll services 5412"
7290 "Architectural, engineering, and related services 5413"
7370 "Specialized design services 5414"
7380 "Computer systems design and related services 5415"
7390 "Management, scientific, and technical consulting services 5416"
7460 "Scientific research and development services 5417"
7470 "Advertising and related services 5418"
7480 "Veterinary services 54194"
7490 "Other professional, scientific, and technical services 5419 exc.54194"
7570 "Management of companies and enterprises 551"
7580 "Employment services 5613"
7590 "Business support services 5614"
7670 "Travel arrangements and reservation services 5615"
7680 "Investigation and security services 5616"
7690 "** Services to buildings and dwellings 5617 exc.56173"
7770 "Landscaping services 56173"
7780 "Other administrative and other support services 5611,5612,5619"
7790 "Waste management and remediation services 562"
7860 "Elementary and secondary schools 6111"
7870 "Colleges and universities, including junior colleges 6112, 6113"
7880 "Business, technical, and trade schools and training 6114, 6115"
7890 "Other schools, instruction, and educational services 6116, 6117"
7970 "Offices of physicians 6211"
7980 "Offices of dentists 6212"
7990 "Offices of chiropractors 62131"
8070 "Offices of optometrists 62132"
8080 "Offices of other health practitioners 6213 exc.62131,62132"
8090 "Outpatient care centers 6214"
8170 "Home health care services 6216"
8180 "Other health care services 6215,6219"
8190 "Hospitals 622"
8270 "Nursing care facilities 6231"
8290 "Residential care facilities, without nursing 6232,6233,6239"
8370 "Individual and family services 6241"
8380 "Community food and housing, and emergency services 6242"
8390 "Vocational rehabilitation services 6243"
8470 "Child day care services 6244"
8560 "Indep. artists, perform arts, spect sports, and related industries 711"
8570 "Museums, art galleries, historical sites, and similar institutions 712"
8580 "Bowling centers 71395"
8590 "Other amusement, gambling, and recreation industries 713 exc.71395"
8660 "Traveler accommodation 7211"
8670 "Rec veh parks & camps, & rooming & boarding houses 7212,7213"
8680 "Restaurants and other food services 722 exc. 7224"
8690 "Drinking places, alcoholic beverages 7224"
8770 "Automotive repair and maintenance 8111 exc.811192"
8780 "Car washes 811192"
8790 "Electronic and precision equipment repair and maintenance 8112"
8870 "Commercial & industrial machinery & equipment repair & maintenance 8113"
8880 "Personal and household goods repair and maintenance 8114 exc.81143"
8890 "Footwear and leather goods repair 81143"
8970 "Barber shops 812111"
8980 "Beauty salons 812112"
8990 "Nail salons and other personal care services 812113,81219"
9070 "Drycleaning and laundry services 8123"
9080 "Funeral homes, cemeteries, and crematories 8122"
9090 "Other personal services 8129"
9160 "Religious organizations 8131"
9170 "Civic, social, advocacy orgs, & grantmaking & giving servs 8132,8133,8134"
9180 "Labor unions 81393"
9190 "Business, prof, political, & similar organizations 8139 exc.81393"
9290 "Private households 814"
9370 "Executive offices and legislative bodies 92111,92112,92114,pt.92115"
9380 "Public finance activities 92113"
9390 "Other general government and support 92119"
9470 "Justice, public order, and safety activities 922,pt.92115"
9480 "Administration of human resource programs 923"
9490 "Administration of environmental quality and housing programs 924,925"
9570 "Administration of economic programs and space research 926,927"
9590 "National security and international affairs 928"
9890 "Armed Forces"
9970 "Problem referral [recoded to missing]"
9990 "Uncodable (Includes Refused or reported Classified) [recoded to missing]"
;
#delimit cr
lab val ind03 ind03


	/* 2009 - 2011 */
	
/* 
changes from 2003:
6675 changed to 6672, same industry:Internet Publishing and Broadcasting
Removed - 6692 Internet service providers (new industry) 5181"
*/

if 2009<=`year' & `year'<=2011 {

replace ind09=peio1icd
replace ind09=. if peio1icd<=0
replace ind09=. if peio1icd==9970 /* "Problem referral" */
replace ind09=. if peio1icd==9990 /* "Uncodable (Includes Refused or reported Classified)" */
}

#delimit ;
lab def ind09
0170 "Crop production 111"
0180 "Animal production 112"
0190 "Forestry except logging 1131, 1132"
0270 "Logging 1133"
0280 "Fishing, hunting, and trapping 114"
0290 "Support activities for agriculture and forestry 115"
0370 "Oil and gas extraction 211"
0380 "Coal mining 2121"
0390 "Metal ore mining 2122"
0470 "Nonmetallic mineral mining and quarrying 2123"
0480 "Not specified type of mining Part of 21"
0490 "Support activities for mining 213"
0570 "Electric power generation, transmission and distribution Pt. 2211"
0580 "Natural gas distribution Pt. 2212"
0590 "Electric and gas, and other combinations Pts. 2211,2212"
0670 "Water, steam, air-conditioning, and irrigation systems 22131,22133"
0680 "Sewage treatment facilities 22132"
0690 "Not specified utilities Part of 22"
0770 "Construction 23"
1070 "Animal food, grain and oilseed milling 3111,3112"
1080 "Sugar and confectionery products 3113"
1090 "Fruit and vegetable preserving and specialty food manufacturing 3114"
1170 "Dairy product manufacturing 3115"
1180 "Animal slaughtering and processing 3116"
1190 "Retail bakeries 311811"
1270 "Bakeries, except retail 3118 exc.311811"
1280 "Seafood and other miscellaneous foods, n.e.c. 3117,3119"
1290 "Not specified food industries Part of 311"
1370 "Beverage manufacturing 3121"
1390 "Tobacco manufacturing 3122"
1470 "Fiber, yarn, and thread mills 3131"
1480 "Fabric mills, except knitting 3132 exc.31324"
1490 "Textile and fabric finishing and coating mills 3133"
1570 "Carpet and rug mills 31411"
1590 "Textile product mills, except carpets and rugs 314 exc.31411"
1670 "Knitting mills 31324, 3151"
1680 "Cut and sew apparel manufacturing 3152"
1690 "Apparel accessories and other apparel manufacturing 3159"
1770 "Footwear manufacturing 3162"
1790 "Leather tanning and products, except footwear manufacturing 3161,3169"
1870 "Pulp, paper, and paperboard mills 3221"
1880 "Paperboard containers and boxes 32221"
1890 "Miscellaneous paper and pulp products 32222,32223,32229"
1990 "Printing and related support activities 3231"
2070 "Petroleum refining 32411"
2090 "Miscellaneous petroleum and coal products 32419"
2170 "Resin, synthetic rubber and fibers, and filaments manufacturing 3252"
2180 "Agricultural chemical manufacturing 3253"
2190 "Pharmaceutical and medicine manufacturing 3254"
2270 "Paint, coating, and adhesive manufacturing B46 3255"
2280 "Soap, cleaning compound, and cosmetics manufacturing 3256"
2290 "Industrial and miscellaneous chemicals 3251,3259"
2370 "Plastics product manufacturing 3261"
2380 "Tire manufacturing 32621"
2390 "Rubber products, except tires, manufacturing 32622,32629"
2470 "Pottery, ceramics, and related products manufacturing 32711"
2480 "Structural clay product manufacturing 32712"
2490 "Glass and glass product manufacturing 3272"
2570 "Cement, concrete, lime, and gypsum product manufacturing 3273,3274"
2590 "Miscellaneous nonmetallic mineral product manufacturing 3279"
2670 "Iron and steel mills and steel product manufacturing 3311,3312"
2680 "Aluminum production and processing 3313"
2690 "Nonferrous metal, except aluminum, production and processing 3314"
2770 "Foundries 3315"
2780 "Metal forgings and stampings 3321"
2790 "Cutlery and hand tool manufacturing 3322"
2870 "Structural metals, & tank & shipping container manufacturing 3323,3324"
2880 "Machine shops; turned product; screw, nut and bolt activities 3327"
2890 "Coating, engraving, heat treating and allied activities 3328"
2970 "Ordnance 332992-332995"
2980 "Misc fab metal prod manu 3325,3326,3329 exc.332992,332993,332994,332995"
2990 "Not specified metal industries part of 331 and 332"
3070 "Agricultural implement manufacturing 33311"
3080 "Construction, mining and oil field manufacturing 33312,33313"
3090 "Commercial and service industry machinery manufacturing 3333"
3170 "Metalworking machinery manufacturing 3335"
3180 "Engines, turbines, and power transmission equipment manufacturing 3336"
3190 "Machinery manufacturing, n.e.c. 3332,3334,3339"
3290 "Not specified machinery manufacturing Part of 333"
3360 "Computer and peripheral equipment manufacturing 3341"
3370 "Communications, audio, and video equipment manufacturing 3342,3343"
3380 "Navig, measuring, electromedical, & control instrum manuf 3345"
3390 "Electronic component and product manufacturing, n.e.c. 3344,3346"
3470 "Household appliance manufacturing 3352"
3490 "Electrical lighting, equipment, and supplies manuf, n.e.c.3351,3353,3359"
3570 "Motor vehicles & motor vehicle equipment manufacturing 3361,3362,3363"
3580 "Aircraft and parts manufacturing 336411-336413"
3590 "Aerospace products and parts manufacturing 336414,336415,336419"
3670 "Railroad rolling stock manufacturing 3365"
3680 "Ship and boat building 3366"
3690 "Other transportation equipment manufacturing 3369"
3770 "Sawmills and wood preservation 3211"
3780 "Veneer, plywood, and engineered wood products 3212"
3790 "Prefabricated wood buildings and mobile homes 321991,321992"
3870 "Miscellaneous wood products manuf 3219 exc.321991,321992"
3890 "Furniture and related products manufacturing 337"
3960 "Medical equipment and supplies manufacturing 3391"
3970 "Toys, amusement, and sporting goods manufacturing 33992,33993"
3980 "Miscellaneous manufacturing, n.e.c. 3399 exc.33992,33993"
3990 "Not specified manufacturing industries part of 31,32,33"
4070 "Motor vehicles, parts and supplies, merchant wholesalers 4231"
4080 "Furniture and home furnishing, merchant wholesalers 4232"
4090 "Lumber and other construction materials, merchant wholesalers 4233"
4170 "Prof & commercial equipment & supplies, merchant wholesalers 4234"
4180 "Metals and minerals, except petroleum, merchant wholesalers 4235"
4190 "Electrical goods, merchant wholesalers 4236"
4260 "Hardware, plumbing, heating equip, supplies, merchant wholesalers 4237"
4270 "Machinery, equipment, and supplies, merchant wholesalers 4238"
4280 "Recyclable material, merchant wholesalers 42393"
4290 "Miscellaneous durable goods, merchant wholesalers 4239 exc.42393"
4370 "Paper and paper products, merchant wholesalers 4241"
4380 "Drugs, sundries, chemical & allied products, merchant wholesalers 4242,4246"
4390 "Apparel, fabrics, and notions, merchant wholesalers 4243"
4470 "Groceries and related products, merchant wholesalers 4244"
4480 "Farm product raw materials, merchant wholesalers 4245"
4490 "Petroleum and petroleum products, merchant wholesalers 4247"
4560 "Alcoholic beverages, merchant wholesalers 4248"
4570 "Farm supplies, merchant wholesalers 42491"
4580 "Miscellaneous nondurable goods, merchant wholesalers 4249 exc.42491"
4585 "Wholesale electronic markets, agents & brokers  4251"
4590 "Not specified wholesale trade Part of 42"
4670 "Automobile dealers 4411"
4680 "Other motor vehicle dealers 4412"
4690 "Auto parts, accessories, and tire stores 4413"
4770 "Furniture and home furnishings stores 442"
4780 "Household appliance stores 443111"
4790 "Radio, TV, and computer stores 443112,44312"
4870 "Building material and supplies dealers 4441 exc.44413"
4880 "Hardware stores 44413"
4890 "Lawn and garden equipment and supplies stores 4442"
4970 "Grocery stores 4451"
4980 "Specialty food stores 4452"
4990 "Beer, wine, and liquor stores 4453"
5070 "Pharmacies and drug stores 4461"
5080 "Health and personal care, except drug, stores 446 exc.44611"
5090 "Gasoline stations 447"
5170 "Clothing and accessories, except shoe, stores 448 exc.44821,4483"
5180 "Shoe stores 44821"
5190 "Jewelry, luggage, and leather goods stores 4483"
5270 "Sporting goods, camera, and hobby and toy stores 44313,45111,45112"
5280 "Sewing, needlework, and piece goods stores 45113"
5290 "Music stores 45114,45122"
5370 "Book stores and news dealers 45121"
5380 "Department stores and discount stores 45211"
5390 "Miscellaneous general merchandise stores 4529"
5470 "Retail florists 4531"
5480 "Office supplies and stationery stores 45321"
5490 "Used merchandise stores 4533"
5570 "Gift, novelty, and souvenir shops 45322"
5580 "Miscellaneous retail stores 4539"
5590 "Electronic shopping 454111"
5591 "Electronic auctions 454112"
5592 "Mail order houses 454113"
5670 "Vending machine operators 4542"
5680 "Fuel dealers 45431"
5690 "Other direct selling establishments 45439"
5790 "Not specified retail trade Part of 44,45"
6070 "Air transportation 481"
6080 "Rail transportation 482"
6090 "Water transportation 483"
6170 "Truck transportation 484"
6180 "Bus service and urban transit 4851,4852,4854,4855,4859"
6190 "Taxi and limousine service 4853"
6270 "Pipeline transportation 486"
6280 "Scenic and sightseeing transportation 487"
6290 "Services incidental to transportation 488"
6370 "Postal Service 491"
6380 "Courier and messengers 492"
6390 "Warehousing and storage 493"
6470 "Newspaper publishers 51111"
6480 "Publishing, except newspapers and software 5111 exc.51111"
6490 "Software publishing 5112"
6570 "Motion pictures and video industries 5121"
6590 "Sound recording industries 5122"
6670 "Radio and television broadcasting and cable 5151,5152,5175"
6672 "Internet publishing and broadcasting 51913"
6680 "Wired telecommunications carriers 5171"
6690 "Other telecommunications services 517 exc.5171,5175"
6695 "Data processing, hosting, and related services 5182"
6770 "Libraries and archives 51912"
6780 "Other information services 5191 exc.51912"
6870 "Banking and related activities 521,52211,52219"
6880 "Savings institutions, including credit unions 52212,52213"
6890 "Non-depository credit and related activities 5222,5223"
6970 "Securities, commodities, funds, trusts, & other fin investments 523,525"
6990 "Insurance carriers and related activities 524"
7070 "Real estate 531"
7080 "Automotive equipment rental and leasing 5321"
7170 "Video tape and disk rental 53223"
7180 "Other consumer goods rental 53221,53222,53229,5323"
7190 "Commercial, industrial, other intangible assets rental & leasing 5324,533"
7270 "Legal services 5411"
7280 "Accounting, tax preparation, bookkeeping, and payroll services 5412"
7290 "Architectural, engineering, and related services 5413"
7370 "Specialized design services 5414"
7380 "Computer systems design and related services 5415"
7390 "Management, scientific, and technical consulting services 5416"
7460 "Scientific research and development services 5417"
7470 "Advertising and related services 5418"
7480 "Veterinary services 54194"
7490 "Other professional, scientific, and technical services 5419 exc.54194"
7570 "Management of companies and enterprises 551"
7580 "Employment services 5613"
7590 "Business support services 5614"
7670 "Travel arrangements and reservation services 5615"
7680 "Investigation and security services 5616"
7690 "Services to buildings and dwellings 5617 exc.56173"
7770 "Landscaping services 56173"
7780 "Other administrative and other support services 5611,5612,5619"
7790 "Waste management and remediation services 562"
7860 "Elementary and secondary schools 6111"
7870 "Colleges and universities, including junior colleges 6112, 6113"
7880 "Business, technical, and trade schools and training 6114, 6115"
7890 "Other schools, instruction, and educational services 6116, 6117"
7970 "Offices of physicians 6211"
7980 "Offices of dentists 6212"
7990 "Offices of chiropractors 62131"
8070 "Offices of optometrists 62132"
8080 "Offices of other health practitioners 6213 exc.62131,62132"
8090 "Outpatient care centers 6214"
8170 "Home health care services 6216"
8180 "Other health care services 6215,6219"
8190 "Hospitals 622"
8270 "Nursing care facilities 6231"
8290 "Residential care facilities, without nursing 6232,6233,6239"
8370 "Individual and family services 6241"
8380 "Community food and housing, and emergency services 6242"
8390 "Vocational rehabilitation services 6243"
8470 "Child day care services 6244"
8560 "Indep. artists, perform arts, spect sports, and related industries 711"
8570 "Museums, art galleries, historical sites, and similar institutions 712"
8580 "Bowling centers 71395"
8590 "Other amusement, gambling, and recreation industries 713 exc.71395"
8660 "Traveler accommodation 7211"
8670 "Rec veh parks & camps, & rooming & boarding houses 7212,7213"
8680 "Restaurants and other food services 722 exc. 7224"
8690 "Drinking places, alcoholic beverages 7224"
8770 "Automotive repair and maintenance 8111 exc.811192"
8780 "Car washes 811192"
8790 "Electronic and precision equipment repair and maintenance 8112"
8870 "Commercial & industrial machinery & equipment repair & maintenance 8113"
8880 "Personal and household goods repair and maintenance 8114 exc.81143"
8890 "Footwear and leather goods repair 81143"
8970 "Barber shops 812111"
8980 "Beauty salons 812112"
8990 "Nail salons and other personal care services 812113,81219"
9070 "Drycleaning and laundry services 8123"
9080 "Funeral homes, cemeteries, and crematories 8122"
9090 "Other personal services 8129"
9160 "Religious organizations 8131"
9170 "Civic, social, advocacy orgs, & grantmaking & giving servs 8132,8133,8134"
9180 "Labor unions 81393"
9190 "Business, prof, political, & similar organizations 8139 exc.81393"
9290 "Private households 814"
9370 "Executive offices and legislative bodies 92111,92112,92114,pt.92115"
9380 "Public finance activities 92113"
9390 "Other general government and support 92119"
9470 "Justice, public order, and safety activities 922,pt.92115"
9480 "Administration of human resource programs 923"
9490 "Administration of environmental quality and housing programs 924,925"
9570 "Administration of economic programs and space research 926,927"
9590 "National security and international affairs 928"
9890 "Armed Forces"
9970 "Problem referral [recoded to missing]"
9990 "Uncodable (Includes Refused or reported Classified) [recoded to missing]"
;
#delimit cr
lab val ind09 ind09


	/* 2012 */

if `year'==2012 {
 
    replace ind09=peio1icd if (1<=month & month<=4)
    replace ind09=. if peio1icd<=0 & (1<=month & month<=4) 
    replace ind09=. if peio1icd==9970 & (1<=month & month<=4) /* "Problem referral" */
    replace ind09=. if peio1icd==9990 & (1<=month & month<=4) /* "Uncodable (Includes Refused or reported Classified)" */


/* coding changes May 2012 */

/* changes from 2009:
Removed - 0480 "Not specified type of mining Part of 21", but added to 470
Removed - 3290 "Not specified machinery manufacturing Part of 333"
6670 "Radio and television broadcasting and cable" NAICS code now 515
6690 "Other telecommunications services" NAICS code now 517, exc. 5171
Removed - 8890 " Footwear and leather goods repair", but added to 8880
*/

    replace ind12=peio1icd if (5<=month & month<=12)
    replace ind12=. if peio1icd<=0 & (5<=month & month<=12) 
    replace ind12=. if peio1icd==9970 & (5<=month & month<=12) /* "Problem referral" */
    replace ind12=. if peio1icd==9990 & (5<=month & month<=12) /* "Uncodable (Includes Refused or reported Classified)" */
}

#delimit ;
lab def ind12
0170 "Crop production 111"
0180 "Animal production 112"
0190 "Forestry except logging 1131, 1132"
0270 "Logging 1133"
0280 "Fishing, hunting, and trapping 114"
0290 "Support activities for agriculture and forestry 115"
0370 "Oil and gas extraction 211"
0380 "Coal mining 2121"
0390 "Metal ore mining 2122"
0470 "Nonmetallic mineral mining and quarrying 2123"
0490 "Support activities for mining 213"
0570 "Electric power generation, transmission and distribution Pt. 2211"
0580 "Natural gas distribution Pt. 2212"
0590 "Electric and gas, and other combinations Pts. 2211,2212"
0670 "Water, steam, air-conditioning, and irrigation systems 22131,22133"
0680 "Sewage treatment facilities 22132"
0690 "Not specified utilities Part of 22"
0770 "Construction 23"
1070 "Animal food, grain and oilseed milling 3111,3112"
1080 "Sugar and confectionery products 3113"
1090 "Fruit and vegetable preserving and specialty food manufacturing 3114"
1170 "Dairy product manufacturing 3115"
1180 "Animal slaughtering and processing 3116"
1190 "Retail bakeries 311811"
1270 "Bakeries, except retail 3118 exc.311811"
1280 "Seafood and other miscellaneous foods, n.e.c. 3117,3119"
1290 "Not specified food industries Part of 311"
1370 "Beverage manufacturing 3121"
1390 "Tobacco manufacturing 3122"
1470 "Fiber, yarn, and thread mills 3131"
1480 "Fabric mills, except knitting 3132 exc.31324"
1490 "Textile and fabric finishing and coating mills 3133"
1570 "Carpet and rug mills 31411"
1590 "Textile product mills, except carpets and rugs 314 exc.31411"
1670 "Knitting mills 31324, 3151"
1680 "Cut and sew apparel manufacturing 3152"
1690 "Apparel accessories and other apparel manufacturing 3159"
1770 "Footwear manufacturing 3162"
1790 "Leather tanning and products, except footwear manufacturing 3161,3169"
1870 "Pulp, paper, and paperboard mills 3221"
1880 "Paperboard containers and boxes 32221"
1890 "Miscellaneous paper and pulp products 32222,32223,32229"
1990 "Printing and related support activities 3231"
2070 "Petroleum refining 32411"
2090 "Miscellaneous petroleum and coal products 32419"
2170 "Resin, synthetic rubber and fibers, and filaments manufacturing 3252"
2180 "Agricultural chemical manufacturing 3253"
2190 "Pharmaceutical and medicine manufacturing 3254"
2270 "Paint, coating, and adhesive manufacturing B46 3255"
2280 "Soap, cleaning compound, and cosmetics manufacturing 3256"
2290 "Industrial and miscellaneous chemicals 3251,3259"
2370 "Plastics product manufacturing 3261"
2380 "Tire manufacturing 32621"
2390 "Rubber products, except tires, manufacturing 32622,32629"
2470 "Pottery, ceramics, and related products manufacturing 32711"
2480 "Structural clay product manufacturing 32712"
2490 "Glass and glass product manufacturing 3272"
2570 "Cement, concrete, lime, and gypsum product manufacturing 3273,3274"
2590 "Miscellaneous nonmetallic mineral product manufacturing 3279"
2670 "Iron and steel mills and steel product manufacturing 3311,3312"
2680 "Aluminum production and processing 3313"
2690 "Nonferrous metal, except aluminum, production and processing 3314"
2770 "Foundries 3315"
2780 "Metal forgings and stampings 3321"
2790 "Cutlery and hand tool manufacturing 3322"
2870 "Structural metals, & tank & shipping container manufacturing 3323,3324"
2880 "Machine shops; turned product; screw, nut and bolt activities 3327"
2890 "Coating, engraving, heat treating and allied activities 3328"
2970 "Ordnance 332992-332995"
2980 "Misc fab metal prod manu 3325,3326,3329 exc.332992,332993,332994,332995"
2990 "Not specified metal industries part of 331 and 332"
3070 "Agricultural implement manufacturing 33311"
3080 "Construction, mining and oil field manufacturing 33312,33313"
3090 "Commercial and service industry machinery manufacturing 3333"
3170 "Metalworking machinery manufacturing 3335"
3180 "Engines, turbines, and power transmission equipment manufacturing 3336"
3190 "Machinery manufacturing, n.e.c. 3332,3334,3339"
3360 "Computer and peripheral equipment manufacturing 3341"
3370 "Communications, audio, and video equipment manufacturing 3342,3343"
3380 "Navig, measuring, electromedical, & control instrum manuf 3345"
3390 "Electronic component and product manufacturing, n.e.c. 3344,3346"
3470 "Household appliance manufacturing 3352"
3490 "Electrical lighting, equipment, and supplies manuf, n.e.c.3351,3353,3359"
3570 "Motor vehicles & motor vehicle equipment manufacturing 3361,3362,3363"
3580 "Aircraft and parts manufacturing 336411-336413"
3590 "Aerospace products and parts manufacturing 336414,336415,336419"
3670 "Railroad rolling stock manufacturing 3365"
3680 "Ship and boat building 3366"
3690 "Other transportation equipment manufacturing 3369"
3770 "Sawmills and wood preservation 3211"
3780 "Veneer, plywood, and engineered wood products 3212"
3790 "Prefabricated wood buildings and mobile homes 321991,321992"
3870 "Miscellaneous wood products manuf 3219 exc.321991,321992"
3890 "Furniture and related products manufacturing 337"
3960 "Medical equipment and supplies manufacturing 3391"
3970 "Toys, amusement, and sporting goods manufacturing 33992,33993"
3980 "Miscellaneous manufacturing, n.e.c. 3399 exc.33992,33993"
3990 "Not specified manufacturing industries part of 31,32,33"
4070 "Motor vehicles, parts and supplies, merchant wholesalers 4231"
4080 "Furniture and home furnishing, merchant wholesalers 4232"
4090 "Lumber and other construction materials, merchant wholesalers 4233"
4170 "Prof & commercial equipment & supplies, merchant wholesalers 4234"
4180 "Metals and minerals, except petroleum, merchant wholesalers 4235"
4190 "Electrical goods, merchant wholesalers 4236"
4260 "Hardware, plumbing, heating equip, supplies, merchant wholesalers 4237"
4270 "Machinery, equipment, and supplies, merchant wholesalers 4238"
4280 "Recyclable material, merchant wholesalers 42393"
4290 "Miscellaneous durable goods, merchant wholesalers 4239 exc.42393"
4370 "Paper and paper products, merchant wholesalers 4241"
4380 "Drugs, sundries, chemical & allied products, merchant wholesalers 4242,4246"
4390 "Apparel, fabrics, and notions, merchant wholesalers 4243"
4470 "Groceries and related products, merchant wholesalers 4244"
4480 "Farm product raw materials, merchant wholesalers 4245"
4490 "Petroleum and petroleum products, merchant wholesalers 4247"
4560 "Alcoholic beverages, merchant wholesalers 4248"
4570 "Farm supplies, merchant wholesalers 42491"
4580 "Miscellaneous nondurable goods, merchant wholesalers 4249 exc.42491"
4585 "Wholesale electronic markets, agents & brokers  4251"
4590 "Not specified wholesale trade Part of 42"
4670 "Automobile dealers 4411"
4680 "Other motor vehicle dealers 4412"
4690 "Auto parts, accessories, and tire stores 4413"
4770 "Furniture and home furnishings stores 442"
4780 "Household appliance stores 443111"
4790 "Radio, TV, and computer stores 443112,44312"
4870 "Building material and supplies dealers 4441 exc.44413"
4880 "Hardware stores 44413"
4890 "Lawn and garden equipment and supplies stores 4442"
4970 "Grocery stores 4451"
4980 "Specialty food stores 4452"
4990 "Beer, wine, and liquor stores 4453"
5070 "Pharmacies and drug stores 4461"
5080 "Health and personal care, except drug, stores 446 exc.44611"
5090 "Gasoline stations 447"
5170 "Clothing and accessories, except shoe, stores 448 exc.44821,4483"
5180 "Shoe stores 44821"
5190 "Jewelry, luggage, and leather goods stores 4483"
5270 "Sporting goods, camera, and hobby and toy stores 44313,45111,45112"
5280 "Sewing, needlework, and piece goods stores 45113"
5290 "Music stores 45114,45122"
5370 "Book stores and news dealers 45121"
5380 "Department stores and discount stores 45211"
5390 "Miscellaneous general merchandise stores 4529"
5470 "Retail florists 4531"
5480 "Office supplies and stationery stores 45321"
5490 "Used merchandise stores 4533"
5570 "Gift, novelty, and souvenir shops 45322"
5580 "Miscellaneous retail stores 4539"
5590 "Electronic shopping 454111"
5591 "Electronic auctions 454112"
5592 "Mail order houses 454113"
5670 "Vending machine operators 4542"
5680 "Fuel dealers 45431"
5690 "Other direct selling establishments 45439"
5790 "Not specified retail trade Part of 44,45"
6070 "Air transportation 481"
6080 "Rail transportation 482"
6090 "Water transportation 483"
6170 "Truck transportation 484"
6180 "Bus service and urban transit 4851,4852,4854,4855,4859"
6190 "Taxi and limousine service 4853"
6270 "Pipeline transportation 486"
6280 "Scenic and sightseeing transportation 487"
6290 "Services incidental to transportation 488"
6370 "Postal Service 491"
6380 "Courier and messengers 492"
6390 "Warehousing and storage 493"
6470 "Newspaper publishers 51111"
6480 "Publishing, except newspapers and software 5111 exc.51111"
6490 "Software publishing 5112"
6570 "Motion pictures and video industries 5121"
6590 "Sound recording industries 5122"
6670 "Radio and television broadcasting and cable 515"
6672 "Internet publishing and broadcasting 51913"
6680 "Wired telecommunications carriers 5171"
6690 "Other telecommunications services 517 exc.5171"
6695 "Data processing, hosting, and related services 5182"
6770 "Libraries and archives 51912"
6780 "Other information services 5191 exc.51912"
6870 "Banking and related activities 521,52211,52219"
6880 "Savings institutions, including credit unions 52212,52213"
6890 "Non-depository credit and related activities 5222,5223"
6970 "Securities, commodities, funds, trusts, & other fin investments 523,525"
6990 "Insurance carriers and related activities 524"
7070 "Real estate 531"
7080 "Automotive equipment rental and leasing 5321"
7170 "Video tape and disk rental 53223"
7180 "Other consumer goods rental 53221,53222,53229,5323"
7190 "Commercial, industrial, other intangible assets rental & leasing 5324,533"
7270 "Legal services 5411"
7280 "Accounting, tax preparation, bookkeeping, and payroll services 5412"
7290 "Architectural, engineering, and related services 5413"
7370 "Specialized design services 5414"
7380 "Computer systems design and related services 5415"
7390 "Management, scientific, and technical consulting services 5416"
7460 "Scientific research and development services 5417"
7470 "Advertising and related services 5418"
7480 "Veterinary services 54194"
7490 "Other professional, scientific, and technical services 5419 exc.54194"
7570 "Management of companies and enterprises 551"
7580 "Employment services 5613"
7590 "Business support services 5614"
7670 "Travel arrangements and reservation services 5615"
7680 "Investigation and security services 5616"
7690 "Services to buildings and dwellings 5617 exc.56173"
7770 "Landscaping services 56173"
7780 "Other administrative and other support services 5611,5612,5619"
7790 "Waste management and remediation services 562"
7860 "Elementary and secondary schools 6111"
7870 "Colleges and universities, including junior colleges 6112, 6113"
7880 "Business, technical, and trade schools and training 6114, 6115"
7890 "Other schools, instruction, and educational services 6116, 6117"
7970 "Offices of physicians 6211"
7980 "Offices of dentists 6212"
7990 "Offices of chiropractors 62131"
8070 "Offices of optometrists 62132"
8080 "Offices of other health practitioners 6213 exc.62131,62132"
8090 "Outpatient care centers 6214"
8170 "Home health care services 6216"
8180 "Other health care services 6215,6219"
8190 "Hospitals 622"
8270 "Nursing care facilities 6231"
8290 "Residential care facilities, without nursing 6232,6233,6239"
8370 "Individual and family services 6241"
8380 "Community food and housing, and emergency services 6242"
8390 "Vocational rehabilitation services 6243"
8470 "Child day care services 6244"
8560 "Indep. artists, perform arts, spect sports, and related industries 711"
8570 "Museums, art galleries, historical sites, and similar institutions 712"
8580 "Bowling centers 71395"
8590 "Other amusement, gambling, and recreation industries 713 exc.71395"
8660 "Traveler accommodation 7211"
8670 "Rec veh parks & camps, & rooming & boarding houses 7212,7213"
8680 "Restaurants and other food services 722 exc. 7224"
8690 "Drinking places, alcoholic beverages 7224"
8770 "Automotive repair and maintenance 8111 exc.811192"
8780 "Car washes 811192"
8790 "Electronic and precision equipment repair and maintenance 8112"
8870 "Commercial & industrial machinery & equipment repair & maintenance 8113"
8880 "Personal and household goods repair and maintenance and footwear and leather goods repair 8114"
8970 "Barber shops 812111"
8980 "Beauty salons 812112"
8990 "Nail salons and other personal care services 812113,81219"
9070 "Drycleaning and laundry services 8123"
9080 "Funeral homes, cemeteries, and crematories 8122"
9090 "Other personal services 8129"
9160 "Religious organizations 8131"
9170 "Civic, social, advocacy orgs, & grantmaking & giving servs 8132,8133,8134"
9180 "Labor unions 81393"
9190 "Business, prof, political, & similar organizations 8139 exc.81393"
9290 "Private households 814"
9370 "Executive offices and legislative bodies 92111,92112,92114,pt.92115"
9380 "Public finance activities 92113"
9390 "Other general government and support 92119"
9470 "Justice, public order, and safety activities 922,pt.92115"
9480 "Administration of human resource programs 923"
9490 "Administration of environmental quality and housing programs 924,925"
9570 "Administration of economic programs and space research 926,927"
9590 "National security and international affairs 928"
9890 "Armed Forces"
9970 "Problem referral [recoded to missing]"
9990 "Uncodable (Includes Refused or reported Classified) [recoded to missing]"
;
#delimit cr
lab val ind12 ind12


	/* 2013 uses May 2012 codes */

if `year'==2013 {

replace ind12=peio1icd
replace ind12=. if peio1icd<=0 
replace ind12=. if peio1icd==9970 /* "Problem referral" */
replace ind12=. if peio1icd==9990 /* "Uncodable (Includes Refused or reported Classified)" */
}
	
	/* 2014 - 8 */

/* Changes from 2012:
3090 moved to 3095 - commercial and service industry machinery manufacturing
3360 moved to 3365 - computer and peripheral equipment manufacturing
3870 moved to 3875 - miscellaneous wood products
3890 moved to 3895 - furniture and related product manufacturing
4190 moved to 4195 - household appliances and electrical and electronic goods mech. wholesalers
4260 moved to 4265 - hardware, plumbing and heating equipment and supplies merch. wholesalers
4790 moved to 4795 - electronics stores
5270 moved to 5275 - sporting goods, and hobby and toy stores
5290 moved to 5295 - musical instrument and supplies stores
*/
	
if 2014<=`year' & `year'<=2020 {
replace ind14=peio1icd
replace ind14=. if peio1icd<=0
replace ind14=. if peio1icd==9970 /* "Problem referral" */
replace ind14=. if peio1icd==9990 /* "Uncodable (Includes Refused or reported Classified)" */
}

#delimit ;
lab def ind14
0170 "Crop production 111"
0180 "Animal production and aquaculture 112"
0190 "Forestry except logging 1131, 1132"
0270 "Logging 1133"
0280 "Fishing, hunting, and trapping 114"
0290 "Support activities for agriculture and forestry 115"
0370 "Oil and gas extraction 211"
0380 "Coal mining 2121"
0390 "Metal ore mining 2122"
0470 "Nonmetallic mineral mining and quarrying 2123"
0480 "Not specified type of mining Part of 21"
0490 "Support activities for mining 213"
0570 "Electric power generation, transmission and distribution Pt. 2211"
0580 "Natural gas distribution Pt. 2212"
0590 "Electric and gas, and other combinations Pts. 2211,2212"
0670 "Water, steam, air-conditioning, and irrigation systems 22131,22133"
0680 "Sewage treatment facilities 22132"
0690 "Not specified utilities Part of 22"
0770 "Construction 23"
1070 "Animal food, grain and oilseed milling 3111,3112"
1080 "Sugar and confectionery products 3113"
1090 "Fruit and vegetable preserving and specialty food manufacturing 3114"
1170 "Dairy product manufacturing 3115"
1180 "Animal slaughtering and processing 3116"
1190 "Retail bakeries 311811"
1270 "Bakeries and tortilla manufacturing, except retail bakeries 3118 exc.311811"
1280 "Seafood and other miscellaneous foods, n.e.c. 3117,3119"
1290 "Not specified food industries Part of 311"
1370 "Beverage manufacturing 3121"
1390 "Tobacco manufacturing 3122"
1470 "Fiber, yarn, and thread mills 3131"
1480 "Fabric mills, except knitting 3132 exc.31324"
1490 "Textile and fabric finishing and coating mills 3133"
1570 "Carpet and rug mills 31411"
1590 "Textile product mills, except carpets and rugs 314 exc.31411"
1670 "Knitting mills 31324, 3151"
1680 "Cut and sew apparel manufacturing 3152"
1690 "Apparel accessories and other apparel manufacturing 3159"
1770 "Footwear manufacturing 3162"
1790 "Leather tanning and finishing and other allied products manufacturing 3161,3169"
1870 "Pulp, paper, and paperboard mills 3221"
1880 "Paperboard containers manufacturing 32221"
1890 "Miscellaneous paper and pulp products 32222,32223,32229"
1990 "Printing and related support activities 3231"
2070 "Petroleum refining 32411"
2090 "Miscellaneous petroleum and coal products 32412, 32419"
2170 "Resin, synthetic rubber and fibers, and filaments manufacturing 3252"
2180 "Agricultural chemical manufacturing 3253"
2190 "Pharmaceutical and medicine manufacturing 3254"
2270 "Paint, coating, and adhesive manufacturing 3255"
2280 "Soap, cleaning compound, and cosmetics manufacturing 3256"
2290 "Industrial and miscellaneous chemicals 3251,3259"
2370 "Plastics product manufacturing 3261"
2380 "Tire manufacturing 32621"
2390 "Rubber products, except tires, manufacturing 32622,32629"
2470 "Pottery, ceramics, and plumbing fixture manufacturing 32711"
2480 "Clay building material and refractories manufacturing 327120"
2490 "Glass and glass product manufacturing 3272"
2570 "Cement, concrete, lime, and gypsum product manufacturing 3273,3274"
2590 "Miscellaneous nonmetallic mineral product manufacturing 3279"
2670 "Iron and steel mills and steel product manufacturing 3311,3312"
2680 "Aluminum production and processing 3313"
2690 "Nonferrous metal, except aluminum, production and processing 3314"
2770 "Foundries 3315"
2780 "Metal forgings and stampings 3321"
2790 "Cutlery and hand tool manufacturing 3322"
2870 "Structural metals, & tank & shipping container manufacturing 3323,3324"
2880 "Machine shops; turned product; screw, nut and bolt manufacturing 3327"
2890 "Coating, engraving, heat treating and allied activities 3328"
2970 "Ordnance 332992-332994"
2980 "Misc fab metal prod manu 3325,3326,3329 exc.332992,332993,332994"
2990 "Not specified metal industries part 331 and 332"
3070 "Agricultural implement manufacturing 33311"
3080 "Construction, mining and oil field machinery manufacturing 33312,33313"
3095 "Commercial and service industry machinery manufacturing 3333"
3170 "Metalworking machinery manufacturing 3335"
3180 "Engine, turbine, and power transmission equipment manufacturing 3336"
3190 "Machinery manufacturing, n.e.c. 3332,3334,3339"
3290 "Not specified machinery manufacturing Part of 333**"
3365 "Computer and peripheral equipment manufacturing 3341"
3370 "Communications, audio, and video equipment manufacturing 3342,3343"
3380 "Navig, measuring, electromedical, & control instrum manuf 3345"
3390 "Electronic component and product manufacturing, n.e.c. 3344,3346"
3470 "Household appliance manufacturing 3352"
3490 "Electrical lighting, equipment, supplies manuf, n.e.c.3351,3353,3359"
3570 "Motor vehicles & motor vehicle equipment manufacturing 3361,3362,3363"
3580 "Aircraft and parts manufacturing 336411-336413"
3590 "Aerospace products and parts manufacturing 336414,336415,336419"
3670 "Railroad rolling stock manufacturing 3365"
3680 "Ship and boat building 3366"
3690 "Other transportation equipment manufacturing 3369"
3770 "Sawmills and wood preservation 3211"
3780 "Veneer, plywood, and engineered wood products 3212"
3790 "Prefabricated wood buildings and mobile homes 321991,321992"
3875 "Miscellaneous wood products 3219 exc.321991,321992"
3895 "Furniture and related product manufacturing 337"
3960 "Medical equipment and supplies manufacturing 3391"
3970 "Toys, amusement, and sporting goods manufacturing 33992,33993"
3980 "Miscellaneous manufacturing, n.e.c. 3399 exc.33992,33993"
3990 "Not specified manufacturing industries part of 31,32,33"
4070 "Motor vehicle and parts and supplies, merchant wholesalers *4231"
4080 "** Furniture and home furnishing, merchant wholesalers *4232"
4090 "** Lumber and other construction materials, merchant wholesalers *4233"
4170 "** Prof & commercial equipment & supplies, merchant wholesalers *4234"
4180 "** Metals and minerals, except petroleum, merchant wholesalers *4235"
4195 "Household appliances and electrical and electronic goods, merchant wholesalers *4236"
4265 "Hardware, plumbing and heating equip, and supplies, merchant wholesalers 4237"
4270 "** Machinery, equipment, and supplies, merchant wholesalers *4238"
4280 "** Recyclable material, merchant wholesalers *42393"
4290 "** Miscellaneous durable goods, merchant wholesalers *4239 exc.42393"
4370 "** Paper and paper products, merchant wholesalers *4241"
4380 "** Drugs, sundries, chemical & allied products, wholesalers *4242,4246"
4390 "Apparel, piece goods, and notions, merchant wholesalers 4243"
4470 "Grocery and related product, merchant wholesalers 4244"
4480 "Farm product raw material, merchant wholesalers 4245"
4490 "** Petroleum and petroleum products, merchant wholesalers *4247"
4560 "** Alcoholic beverages, merchant wholesalers *4248"
4570 "** Farm supplies, merchant wholesalers *42491"
4580 "** Miscellaneous nondurable goods, merchant wholesalers *4249 exc.42491"
4585 "*** Wholesale electronic markets, agents & brokers 4251"
4590 "**Not specified wholesale trade Part of 42"
4670 "Automobile dealers 4411"
4680 "Other motor vehicle dealers 4412"
4690 "Automotive parts, accessories, and tire stores 4413"
4770 "Furniture and home furnishings stores 442"
4780 "Household appliance stores 443141"
4795 "Electronic stores 443142"
4870 "Building material and supplies dealers 4441 exc.44413"
4880 "Hardware stores 44413"
4890 "Lawn and garden equipment and supplies stores 4442"
4970 "Grocery stores 4451"
4980 "Specialty food stores 4452"
4990 "Beer, wine, and liquor stores 4453"
5070 "Pharmacies and drug stores 44611"
5080 "Health and personal care, except drug, stores 446 exc.44611"
5090 "Gasoline stations 447"
5170 "Clothing stores 4481"
5180 "Shoe stores 44821"
5190 "Jewelry, luggage, and leather goods stores 4483"
5275 "Sporting goods, and hobby and toy stores 45111,45112"
5280 "Sewing, needlework, and piece goods stores 45113"
5295 "Musiccal instruments and supplies stores 45114"
5370 "Book stores and news dealers 45121"
5380 "****Department stores and discount stores 45211"
5390 "Miscellaneous general merchandise stores 4529"
5470 "Retail florists 4531"
5480 "Office supplies and stationery stores 45321"
5490 "Used merchandise stores 4533"
5570 "Gift, novelty, and souvenir shops 45322"
5580 "Miscellaneous retail stores 4539"
5590 "Electronic shopping 454111"
5591 "*** Electronic auctions New industry *454112"
5592 "Mail-order houses 454113"
5670 "Vending machine operators 4542"
5680 "Fuel dealers 454310"
5690 "Other direct selling establishments 45439"
5790 "Not specified retail trade Part of 44,45"
6070 "Air transportation 481"
6080 "Rail transportation 482"
6090 "Water transportation 483"
6170 "Truck transportation 484"
6180 "Bus service and urban transit 4851,4852,4854,4855,4859"
6190 "Taxi and limousine service 4853"
6270 "Pipeline transportation 486"
6280 "Scenic and sightseeing transportation 487"
6290 "Services incidental to transportation 488"
6370 "Postal Service 491"
6380 "Couriers and messengers 492"
6390 "Warehousing and storage 493"
6470 "**Newspaper publishers 51111"
6480 "**Publishing, except newspapers and software 5111 exc.51111"
6490 "Software publishing 5112"
6570 "Motion pictures and video industries 5121"
6590 "Sound recording industries 5122"
6670 "Radio and television broadcasting and cable subscription programming 515"
6672 "Internet publishing and broadcasting and web search portals 51913"
6680 "Wired telecommunications carriers *5171"
6690 "Other telecommunications services 517 exc.5171"
6695 "**** Data processing, hosting, and related services *5182"
6770 "Libraries and archives *51912"
6780 "Other information services 5191 exc.51912, 51913"
6870 "Banking and related activities 521,52211,52219"
6880 "Savings institutions, including credit unions 52212,52213"
6890 "Nondepository credit and related activities 5222,5223"
6970 "Securities, commodities, funds, trusts, & other fin investments 523,525"
6990 "Insurance carriers and related activities 524"
7070 "Real estate 531"
7080 "Automotive equipment rental and leasing 5321"
7170 "Video tape and disk rental 53223"
7180 "Other consumer goods rental 53221,53222,53229,5323"
7190 "Commercial, industrial, oth intangible assets rental, leasing 5324,533"
7270 "Legal services 5411"
7280 "Accounting, tax preparation, bookkeeping, and payroll services 5412"
7290 "Architectural, engineering, and related services 5413"
7370 "Specialized design services 5414"
7380 "Computer systems design and related services 5415"
7390 "Management, scientific, and technical consulting services 5416"
7460 "Scientific research and development services 5417"
7470 "Advertising, public relations, and related services 5418"
7480 "Veterinary services 54194"
7490 "Other professional, scientific, and technical services 5419 exc.54194"
7570 "Management of companies and enterprises 55"
7580 "Employment services 5613"
7590 "Business support services 5614"
7670 "Travel arrangements and reservation services 5615"
7680 "Investigation and security services 5616"
7690 "** Services to buildings and dwellings 5617 exc.56173"
7770 "Landscaping services 56173"
7780 "Other administrative and other support services 5611,5612,5619"
7790 "Waste management and remediation services 562"
7860 "Elementary and secondary schools 6111"
7870 "Colleges, universities, and professional schools, including junior colleges 6112, 6113"
7880 "Business, technical, and trade schools and training 6114, 6115"
7890 "Other schools, instruction, and educational services 6116, 6117"
7970 "Offices of physicians 6211"
7980 "Offices of dentists 6212"
7990 "Offices of chiropractors 62131"
8070 "Offices of optometrists 62132"
8080 "Offices of other health practitioners 6213 exc.62131,62132"
8090 "Outpatient care centers 6214"
8170 "Home health care services 6216"
8180 "Other health care services 6215,6219"
8190 "Hospitals 622"
8270 "Nursing care facilities (skilled nursing facilities) 6231"
8290 "Residential care facilities, except skilled nursing facilities 6232,6233,6239"
8370 "Individual and family services 6241"
8380 "Community food and housing, and emergency services 6242"
8390 "Vocational rehabilitation services 6243"
8470 "Child day care services 6244"
8560 "Perform arts, spect sports, and related industries 711"
8570 "Museums, art galleries, historical sites, and similar institutions 712"
8580 "Bowling centers 71395"
8590 "Other amusement, gambling, and recreation industries 713 exc.71395"
8660 "Traveler accommodation 7211"
8670 "Rec veh parks & camps, & rooming & boarding houses 7212,7213"
8680 "Restaurants and other food services 722 exc. 7224"
8690 "Drinking places, alcoholic beverages 7224"
8770 "Automotive repair and maintenance 8111 exc.811192"
8780 "Car washes 811192"
8790 "Electronic and precision equipment repair and maintenance 8112"
8870 "Commercial & industrial machinery & equipment repair & maintenance 8113"
8880 "Personal and household goods repair and maintenance 8114 exc.81143"
8890 "Footwear and leather goods repair 81143"
8970 "Barber shops 812111"
8980 "Beauty salons 812112"
8990 "Nail salons and other personal care services 812113,81219"
9070 "Drycleaning and laundry services 8123"
9080 "Funeral homes, cemeteries, and crematories 8122"
9090 "Other personal services 8129"
9160 "Religious organizations 8131"
9170 "Civic, social, advocacy orgs, &grantmaking &giving sers 8132,8133,8134"
9180 "Labor unions 81393"
9190 "Business, prof, political, & similar organizations 8139 exc.81393"
9290 "Private households 814"
9370 "Executive offices and legislative bodies 92111,92112,92114,pt.92115"
9380 "Public finance activities 92113"
9390 "Other general government and support 92119"
9470 "Justice, public order, and safety activities 922,pt.92115"
9480 "Administration of human resource programs 923"
9490 "Administration of environmental quality and housing programs 924,925"
9570 "Administration of economic programs and space research 926,927"
9590 "National security and international affairs 928"
9890 "Armed Forces"
9970 "Problem referral [recoded to missing]"
9990 "Uncodable (Includes Refused/reported Classified) [recoded to missing]"
;
#delimit cr
lab val ind14 ind14


lab var ind70 "3-digit industry SIC"
notes ind70: Based on SIC 
notes ind70: Available 1979-1982 only
notes ind70: CPS: TK

lab var ind80 "3-digit industry SIC 1987"
notes ind80: From 83-91, based on 1980 Census codes
notes ind80: From 92-02, based on 1990 Census codes
notes ind80: Available 1983-2002 only
notes ind80: CPS: a-ind

lab var ind03 "3-digit industry NAICS 2002"
notes ind03: 2002 Census industry classification derived from NAICS 2002
notes ind03: "*" indicates code changed from 2000 /*
*/ (In addition to adding of fourth digit)
notes ind03: "**" indicates industry content changed from 2000, /*
*/ name may have changed
notes ind03: "***" indicates new industry
notes ind03: "****" indicates industry name changed, content did not
notes ind03: Available 2003- 2008
notes ind03: CPS: peio1icd

lab var ind09 "3-digit industry"
notes ind09: Available Jan 2009-April 2012
notes ind09: CPS: peio1icd

lab var ind12 "3-digit industry"
notes ind12: Available May 2012-Dec 2013
notes ind12: CPS: peio1icd

lab var ind14 "3-digit industry NAICS 2012"
notes ind14: 2012 Census industry classification derived from NAICS 2012
notes ind14: Available Jan 2014-
notes ind14: CPS: peio1icd

/* Major Industry Recode - JOB 1 */

gen byte ind_m03=.

if 2003<=`year' & `year'<=2020 {
replace ind_m03=prmjind1
replace ind_m03=. if prmjind1<1
replace ind_m03=. if prmjind1>14
}

#delimit ;
lab def ind_m03
1 "Agriculture, forestry, fishing, and hunting"               
2 "Mining"                              
3 "Construction"                                 
4 "Manufacturing"                               
5 "Wholesale and retail trade"                            
6 "Transportation and utilities"                      
7 "Information"                            
8 "Financial activities"                             
9 "Professional and business services"                    
10 "Educational and health services"                       
11 "Leisure and hospitality"                          
12 "Other services"                              
13 "Public administration"                            
14 "Armed Forces"
;
#delimit cr
lab val ind_m03 ind_m03


lab var ind_m03 "Major Industry Recode"
notes ind_m03: Available 2003-present
notes ind_m03: CPS: prmjind1

/* Agriculture, manufacturing, services */

gen byte agric=.
gen byte manuf=.
gen byte servs=.

if 1994<=`year' & `year'<=2002 {
replace agric=0 if ind_nber~=.
replace agric=1 if ind_nber==1 | ind_nber==2 | ind_nber==46
}

if 2003<=`year' & `year'<=2020 {
replace agric=0 if ind_2d~=.
replace agric=1 if ind_2d==1 | ind_2d==2
}

if 1994<=`year' & `year'<=2002 {
replace manuf=0 if ind_nber~=.
replace manuf=1 if 3<=ind_nber & ind_nber<=28
replace manuf=0 if ind_nber==4 /* construction */
}

if 2003<=`year' & `year'<=2020 {
replace manuf=0 if ind_2d~=.
replace manuf=1 if 3<=ind_2d & ind_2d<=20
replace manuf=0 if ind_2d==4 /* construction */
}

if 1994<=`year' & `year'<=2002 {
replace servs=0 if ind_nber~=.
replace servs=1 if (29<=ind_nber & ind_nber<=52) & ind_nber~=46
replace servs=1 if ind_nber==4 /* construction */ 
}

if 2003<=`year' & `year'<=2016 {
replace servs=0 if ind_2d~=.
replace servs=1 if 21<=ind_2d & ind_2d<=52
replace servs=1 if ind_2d==4
}

lab var agric "Agriculture"
notes agric: CPS: prdtind1

lab var manuf "Manufacturing"
notes manuf: Excludes transportation, communications, utilities, construction
notes manuf: Includes mining
notes manuf: CPS: prdtind1

lab var servs "Services"
notes servs: Includes transportation, communications, utilities, construction
notes servs: CPS: prdtind1

/* 
Copyright 2020 CEPR and John Schmitt

This file is part of the cepr_org_master.do program. This file and all
programs referenced in it are free software. You can redistribute the
program or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
USA.
*/
